get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 786044,
    "url": "http://patchwork.ozlabs.org/api/patches/786044/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170710031539.GA18282@embeddedgus/",
    "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": "<20170710031539.GA18282@embeddedgus>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20170710031539.GA18282@embeddedgus/",
    "date": "2017-07-10T03:15:39",
    "name": "usb: gadget: fsl_udc_core: compress return logic into one line",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": false,
    "hash": "3e7bca4835e39c92dea8ac77d43d26721c87f35e",
    "submitter": {
        "id": 71553,
        "url": "http://patchwork.ozlabs.org/api/people/71553/?format=api",
        "name": "Gustavo A. R. Silva",
        "email": "garsilva@embeddedor.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170710031539.GA18282@embeddedgus/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/786044/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/786044/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 [IPv6:2401:3900:2:1::3])\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 3x5WqD65D7z9s0Z\n\tfor <patchwork-incoming@ozlabs.org>;\n\tMon, 10 Jul 2017 14:06:16 +1000 (AEST)",
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3x5WqD5Ct0zDq7d\n\tfor <patchwork-incoming@ozlabs.org>;\n\tMon, 10 Jul 2017 14:06:16 +1000 (AEST)",
            "from gateway31.websitewelcome.com (gateway31.websitewelcome.com\n\t[192.185.143.46])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3x5Wp82nPXzDq6W\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tMon, 10 Jul 2017 14:05:20 +1000 (AEST)",
            "from cm14.websitewelcome.com (cm14.websitewelcome.com\n\t[100.42.49.7])\n\tby gateway31.websitewelcome.com (Postfix) with ESMTP id 7F62914537\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tSun,  9 Jul 2017 22:15:48 -0500 (CDT)",
            "from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP\n\tid UPATd5Si1FnrPUPATdx9N4; Sun, 09 Jul 2017 22:15:25 -0500",
            "from [189.152.152.176] (port=46654 helo=embeddedgus)\n\tby gator4166.hostgator.com with esmtpa (Exim 4.87)\n\t(envelope-from <garsilva@embeddedor.com>)\n\tid 1dUPAp-000DoQ-TH; Sun, 09 Jul 2017 22:15:47 -0500"
        ],
        "X-Greylist": "delayed 1500 seconds by postgrey-1.36 at bilbo;\n\tMon, 10 Jul 2017 14:05:20 AEST",
        "Date": "Sun, 9 Jul 2017 22:15:39 -0500",
        "From": "\"Gustavo A. R. Silva\" <garsilva@embeddedor.com>",
        "To": "Li Yang <leoyang.li@nxp.com>, Felipe Balbi <balbi@kernel.org>,\n\tGreg Kroah-Hartman <gregkh@linuxfoundation.org>",
        "Subject": "[PATCH] usb: gadget: fsl_udc_core: compress return logic into one\n\tline",
        "Message-ID": "<20170710031539.GA18282@embeddedgus>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=us-ascii",
        "Content-Disposition": "inline",
        "User-Agent": "Mutt/1.5.23 (2014-03-12)",
        "X-AntiAbuse": [
            "This header was added to track abuse,\n\tplease include it with any abuse report",
            "Primary Hostname - gator4166.hostgator.com",
            "Original Domain - lists.ozlabs.org",
            "Originator/Caller UID/GID - [47 12] / [47 12]",
            "Sender Address Domain - embeddedor.com"
        ],
        "X-BWhitelist": "no",
        "X-Source-IP": "189.152.152.176",
        "X-Exim-ID": "1dUPAp-000DoQ-TH",
        "X-Source": "",
        "X-Source-Args": "",
        "X-Source-Dir": "",
        "X-Source-Sender": "(embeddedgus) [189.152.152.176]:46654",
        "X-Source-Auth": "garsilva@embeddedor.com",
        "X-Email-Count": "16",
        "X-Source-Cap": "Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20=",
        "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": "\"Gustavo A. R. Silva\" <garsilva@embeddedor.com>,\n\tlinux-usb@vger.kernel.org, \n\tlinuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org",
        "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": "Simplify return logic to avoid unnecessary variable assignment.\n\nThis issue was detected using Coccinelle and the following\nsemantic patch:\n\n@@\nlocal idexpression ret;\nexpression e;\n@@\n\n-ret =\n+return\n     e;\n-return ret;\n\nSigned-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>\n---\n drivers/usb/gadget/udc/fsl_udc_core.c | 3 +--\n 1 file changed, 1 insertion(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/usb/gadget/udc/fsl_udc_core.c b/drivers/usb/gadget/udc/fsl_udc_core.c\nindex 6f2f71c..bf8ff5e 100644\n--- a/drivers/usb/gadget/udc/fsl_udc_core.c\n+++ b/drivers/usb/gadget/udc/fsl_udc_core.c\n@@ -1642,8 +1642,7 @@ static int process_ep_req(struct fsl_udc *udc, int pipe,\n \t\t} else if (hc32_to_cpu(curr_td->size_ioc_sts)\n \t\t\t\t& DTD_STATUS_ACTIVE) {\n \t\t\tVDBG(\"Request not complete\");\n-\t\t\tstatus = REQ_UNCOMPLETE;\n-\t\t\treturn status;\n+\t\t\treturn REQ_UNCOMPLETE;\n \t\t} else if (remaining_length) {\n \t\t\tif (direction) {\n \t\t\t\tVDBG(\"Transmit dTD remaining length not zero\");\n",
    "prefixes": []
}