get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/806041/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 806041,
    "url": "http://patchwork.ozlabs.org/api/patches/806041/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1503699473-61505-1-git-send-email-ukrishn@linux.vnet.ibm.com/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api",
        "name": "Linux PPC development",
        "link_name": "linuxppc-dev",
        "list_id": "linuxppc-dev.lists.ozlabs.org",
        "list_email": "linuxppc-dev@lists.ozlabs.org",
        "web_url": "https://github.com/linuxppc/wiki/wiki",
        "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git",
        "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/",
        "list_archive_url": "https://lore.kernel.org/linuxppc-dev/",
        "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/",
        "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"
    },
    "msgid": "<1503699473-61505-1-git-send-email-ukrishn@linux.vnet.ibm.com>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/1503699473-61505-1-git-send-email-ukrishn@linux.vnet.ibm.com/",
    "date": "2017-08-25T22:17:53",
    "name": "[1/3] cxlflash: Remove unnecessary existence check",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": false,
    "hash": "f657a10064b53ca0a8bb7eedbaedb1ffd6e76068",
    "submitter": {
        "id": 67825,
        "url": "http://patchwork.ozlabs.org/api/people/67825/?format=api",
        "name": "Uma Krishnan",
        "email": "ukrishn@linux.vnet.ibm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1503699473-61505-1-git-send-email-ukrishn@linux.vnet.ibm.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/806041/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/806041/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>",
        "X-Original-To": [
            "patchwork-incoming@ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Received": [
            "from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xfFxr5yrKz9t3s\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSat, 26 Aug 2017 08:21:36 +1000 (AEST)",
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xfFxr54kczDrMg\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSat, 26 Aug 2017 08:21:36 +1000 (AEST)",
            "from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com\n\t[148.163.158.5])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xfFss4mbtzDrL5\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tSat, 26 Aug 2017 08:18:09 +1000 (AEST)",
            "from pps.filterd (m0098421.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv7PMDwEI073374\n\tfor <linuxppc-dev@lists.ozlabs.org>; Fri, 25 Aug 2017 18:18:01 -0400",
            "from e15.ny.us.ibm.com (e15.ny.us.ibm.com [129.33.205.205])\n\tby mx0a-001b2d01.pphosted.com with ESMTP id 2cjp41me6u-1\n\t(version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT)\n\tfor <linuxppc-dev@lists.ozlabs.org>; Fri, 25 Aug 2017 18:18:01 -0400",
            "from localhost\n\tby e15.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use\n\tOnly! Violators will be prosecuted\n\tfor <linuxppc-dev@lists.ozlabs.org> from <ukrishn@linux.vnet.ibm.com>;\n\tFri, 25 Aug 2017 18:18:00 -0400",
            "from b01cxnp22035.gho.pok.ibm.com (9.57.198.25)\n\tby e15.ny.us.ibm.com (146.89.104.202) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tFri, 25 Aug 2017 18:17:58 -0400",
            "from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com\n\t[9.57.199.109])\n\tby b01cxnp22035.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP\n\tid v7PMHvVI30474402; Fri, 25 Aug 2017 22:17:57 GMT",
            "from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id D6596112034;\n\tFri, 25 Aug 2017 18:17:44 -0400 (EDT)",
            "from p8tul1-build.aus.stglabs.ibm.com (unknown [9.3.141.206])\n\tby b01ledav004.gho.pok.ibm.com (Postfix) with ESMTP id 2BE07112054;\n\tFri, 25 Aug 2017 18:17:44 -0400 (EDT)"
        ],
        "From": "Uma Krishnan <ukrishn@linux.vnet.ibm.com>",
        "To": "linux-scsi@vger.kernel.org, James Bottomley <jejb@linux.vnet.ibm.com>,\n\t\"Martin K. Petersen\" <martin.petersen@oracle.com>,\n\t\"Matthew R. Ochs\" <mrochs@linux.vnet.ibm.com>,\n\t\"Manoj N. Kumar\" <manoj@linux.vnet.ibm.com>",
        "Subject": "[PATCH 1/3] cxlflash: Remove unnecessary existence check",
        "Date": "Fri, 25 Aug 2017 17:17:53 -0500",
        "X-Mailer": "git-send-email 2.1.0",
        "In-Reply-To": "<1503699440-61464-1-git-send-email-ukrishn@linux.vnet.ibm.com>",
        "References": "<1503699440-61464-1-git-send-email-ukrishn@linux.vnet.ibm.com>",
        "X-TM-AS-GCONF": "00",
        "x-cbid": "17082522-0036-0000-0000-0000025ED2C7",
        "X-IBM-SpamModules-Scores": "",
        "X-IBM-SpamModules-Versions": "BY=3.00007611; HX=3.00000241; KW=3.00000007;\n\tPH=3.00000004; SC=3.00000225; SDB=6.00907628; UDB=6.00455029;\n\tIPR=6.00687827; \n\tBA=6.00005553; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009;\n\tZB=6.00000000; \n\tZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00016867;\n\tXFM=3.00000015; UTC=2017-08-25 22:17:59",
        "X-IBM-AV-DETECTION": "SAVI=unused REMOTE=unused XFE=unused",
        "x-cbparentid": "17082522-0037-0000-0000-0000418EB07D",
        "Message-Id": "<1503699473-61505-1-git-send-email-ukrishn@linux.vnet.ibm.com>",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-08-25_06:, , signatures=0",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n\tspamscore=0 suspectscore=0\n\tmalwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam\n\tadjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000\n\tdefinitions=main-1708250339",
        "X-BeenThere": "linuxppc-dev@lists.ozlabs.org",
        "X-Mailman-Version": "2.1.23",
        "Precedence": "list",
        "List-Id": "Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>",
        "List-Unsubscribe": "<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.ozlabs.org/pipermail/linuxppc-dev/>",
        "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>",
        "List-Help": "<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>",
        "List-Subscribe": "<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>",
        "Cc": "linuxppc-dev@lists.ozlabs.org,\n\tFrederic Barrat <fbarrat@linux.vnet.ibm.com>, \n\tAndrew Donnellan <andrew.donnellan@au1.ibm.com>,\n\tChristophe Lombard <clombard@linux.vnet.ibm.com>",
        "Errors-To": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org",
        "Sender": "\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"
    },
    "content": "From: \"Matthew R. Ochs\" <mrochs@linux.vnet.ibm.com>\n\nThe AFU termination sequence has been refactored over time such that\nthe main tear down routine, term_afu(), can no longer can be invoked\nwith a NULL AFU pointer. Remove the unnecessary existence check from\nterm_afu().\n\nSigned-off-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>\nSigned-off-by: Uma Krishnan <ukrishn@linux.vnet.ibm.com>\n---\n drivers/scsi/cxlflash/main.c | 3 +--\n 1 file changed, 1 insertion(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/scsi/cxlflash/main.c b/drivers/scsi/cxlflash/main.c\nindex 6a4367c..76b8b7ee 100644\n--- a/drivers/scsi/cxlflash/main.c\n+++ b/drivers/scsi/cxlflash/main.c\n@@ -820,8 +820,7 @@ static void term_afu(struct cxlflash_cfg *cfg)\n \tfor (k = cfg->afu->num_hwqs - 1; k >= 0; k--)\n \t\tterm_intr(cfg, UNMAP_THREE, k);\n \n-\tif (cfg->afu)\n-\t\tstop_afu(cfg);\n+\tstop_afu(cfg);\n \n \tfor (k = cfg->afu->num_hwqs - 1; k >= 0; k--)\n \t\tterm_mc(cfg, k);\n",
    "prefixes": [
        "1/3"
    ]
}