get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 833339,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/833339/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/patch/20171102124731.10484-6-wsa+renesas@sang-engineering.com/",
    "project": {
        "id": 35,
        "url": "http://patchwork.ozlabs.org/api/1.2/projects/35/?format=api",
        "name": "Linux I2C development",
        "link_name": "linux-i2c",
        "list_id": "linux-i2c.vger.kernel.org",
        "list_email": "linux-i2c@vger.kernel.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20171102124731.10484-6-wsa+renesas@sang-engineering.com>",
    "list_archive_url": null,
    "date": "2017-11-02T12:47:31",
    "name": "[RFT,5/5] i2c: sh_mobile: shorten exit of xfer routine",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "36ae7c5281f571e71b5e6aa3d6f6efc1a578bc78",
    "submitter": {
        "id": 69646,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/69646/?format=api",
        "name": "Wolfram Sang",
        "email": "wsa+renesas@sang-engineering.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-i2c/patch/20171102124731.10484-6-wsa+renesas@sang-engineering.com/mbox/",
    "series": [
        {
            "id": 11496,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/11496/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/list/?series=11496",
            "date": "2017-11-02T12:47:26",
            "name": "i2c: sh_mobile: refactor HW init/deinit",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/11496/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/833339/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/833339/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linux-i2c-owner@vger.kernel.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=linux-i2c-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3ySPxw15TWz9sNc\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu,  2 Nov 2017 23:47:48 +1100 (AEDT)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S932190AbdKBMrq (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n\tThu, 2 Nov 2017 08:47:46 -0400",
            "from sauhun.de ([88.99.104.3]:33866 \"EHLO pokefinder.org\"\n\trhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n\tid S1755224AbdKBMrn (ORCPT <rfc822;linux-i2c@vger.kernel.org>);\n\tThu, 2 Nov 2017 08:47:43 -0400",
            "from localhost (p54B33C39.dip0.t-ipconnect.de [84.179.60.57])\n\tby pokefinder.org (Postfix) with ESMTPSA id C60892C323A;\n\tThu,  2 Nov 2017 13:47:41 +0100 (CET)"
        ],
        "From": "Wolfram Sang <wsa+renesas@sang-engineering.com>",
        "To": "linux-i2c@vger.kernel.org",
        "Cc": "linux-renesas-soc@vger.kernel.org,\n\tYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>,\n\tJacopo Mondi <jacopo@jmondi.org>,\n\tWolfram Sang <wsa+renesas@sang-engineering.com>",
        "Subject": "[PATCH RFT 5/5] i2c: sh_mobile: shorten exit of xfer routine",
        "Date": "Thu,  2 Nov 2017 13:47:31 +0100",
        "Message-Id": "<20171102124731.10484-6-wsa+renesas@sang-engineering.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "In-Reply-To": "<20171102124731.10484-1-wsa+renesas@sang-engineering.com>",
        "References": "<20171102124731.10484-1-wsa+renesas@sang-engineering.com>",
        "Sender": "linux-i2c-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<linux-i2c.vger.kernel.org>",
        "X-Mailing-List": "linux-i2c@vger.kernel.org"
    },
    "content": "We can use the ternary operator for easier reading.\n\nSigned-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>\n---\n drivers/i2c/busses/i2c-sh_mobile.c | 4 +---\n 1 file changed, 1 insertion(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/i2c/busses/i2c-sh_mobile.c b/drivers/i2c/busses/i2c-sh_mobile.c\nindex 1701f193d94acf..39f0ee1cd78c74 100644\n--- a/drivers/i2c/busses/i2c-sh_mobile.c\n+++ b/drivers/i2c/busses/i2c-sh_mobile.c\n@@ -746,9 +746,7 @@ static int sh_mobile_i2c_xfer(struct i2c_adapter *adapter,\n \tclk_disable_unprepare(pd->clk);\n \tpm_runtime_put_sync(pd->dev);\n \n-\tif (!err)\n-\t\terr = num;\n-\treturn err;\n+\treturn err ?: num;\n }\n \n static u32 sh_mobile_i2c_func(struct i2c_adapter *adapter)\n",
    "prefixes": [
        "RFT",
        "5/5"
    ]
}