get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 999799,
    "url": "http://patchwork.ozlabs.org/api/patches/999799/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20181119124819.15860-1-yuehaibing@huawei.com/",
    "project": {
        "id": 46,
        "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api",
        "name": "Intel Wired Ethernet development",
        "link_name": "intel-wired-lan",
        "list_id": "intel-wired-lan.osuosl.org",
        "list_email": "intel-wired-lan@osuosl.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20181119124819.15860-1-yuehaibing@huawei.com>",
    "list_archive_url": null,
    "date": "2018-11-19T12:48:19",
    "name": "[net-next] e100: Fix passing zero to 'PTR_ERR' warning in e100_load_ucode_wait",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "0dbe77d7194ebc35c21266b67fae7ff85f193ee9",
    "submitter": {
        "id": 70610,
        "url": "http://patchwork.ozlabs.org/api/people/70610/?format=api",
        "name": "Yue Haibing",
        "email": "yuehaibing@huawei.com"
    },
    "delegate": {
        "id": 68,
        "url": "http://patchwork.ozlabs.org/api/users/68/?format=api",
        "username": "jtkirshe",
        "first_name": "Jeff",
        "last_name": "Kirsher",
        "email": "jeffrey.t.kirsher@intel.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20181119124819.15860-1-yuehaibing@huawei.com/mbox/",
    "series": [
        {
            "id": 76786,
            "url": "http://patchwork.ozlabs.org/api/series/76786/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=76786",
            "date": "2018-11-19T12:48:19",
            "name": "[net-next] e100: Fix passing zero to 'PTR_ERR' warning in e100_load_ucode_wait",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/76786/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/999799/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/999799/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@osuosl.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=osuosl.org\n\t(client-ip=140.211.166.136; helo=silver.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdmarc=none (p=none dis=none) header.from=huawei.com"
        ],
        "Received": [
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 42z7tn2Vwqz9sBQ\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 19 Nov 2018 23:48:48 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id DB2C622F23;\n\tMon, 19 Nov 2018 12:48:46 +0000 (UTC)",
            "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id vhXG1v60tU5C; Mon, 19 Nov 2018 12:48:45 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby silver.osuosl.org (Postfix) with ESMTP id 7831A22E69;\n\tMon, 19 Nov 2018 12:48:45 +0000 (UTC)",
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ash.osuosl.org (Postfix) with ESMTP id AC6841C2B56\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 19 Nov 2018 12:48:44 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id A924422E69\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 19 Nov 2018 12:48:44 +0000 (UTC)",
            "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id iEuwH00-OYos for <intel-wired-lan@lists.osuosl.org>;\n\tMon, 19 Nov 2018 12:48:44 +0000 (UTC)",
            "from huawei.com (szxga04-in.huawei.com [45.249.212.190])\n\tby silver.osuosl.org (Postfix) with ESMTPS id E6EF922E3F\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 19 Nov 2018 12:48:43 +0000 (UTC)",
            "from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60])\n\tby Forcepoint Email with ESMTP id 7E2462D9C7F2B;\n\tMon, 19 Nov 2018 20:48:39 +0800 (CST)",
            "from localhost (10.177.31.96) by DGGEMS410-HUB.china.huawei.com\n\t(10.3.19.210) with Microsoft SMTP Server id 14.3.408.0;\n\tMon, 19 Nov 2018 20:48:33 +0800"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "From": "YueHaibing <yuehaibing@huawei.com>",
        "To": "<davem@davemloft.net>, <jeffrey.t.kirsher@intel.com>",
        "Date": "Mon, 19 Nov 2018 20:48:19 +0800",
        "Message-ID": "<20181119124819.15860-1-yuehaibing@huawei.com>",
        "X-Mailer": "git-send-email 2.10.2.windows.1",
        "MIME-Version": "1.0",
        "X-Originating-IP": "[10.177.31.96]",
        "X-CFilter-Loop": "Reflected",
        "Subject": "[Intel-wired-lan] [PATCH net-next] e100: Fix passing zero to\n\t'PTR_ERR' warning in e100_load_ucode_wait",
        "X-BeenThere": "intel-wired-lan@osuosl.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.osuosl.org>",
        "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>",
        "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>",
        "Cc": "netdev@vger.kernel.org, YueHaibing <yuehaibing@huawei.com>,\n\tintel-wired-lan@lists.osuosl.org, linux-kernel@vger.kernel.org",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "intel-wired-lan-bounces@osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>"
    },
    "content": "Fix a static code checker warning:\ndrivers/net/ethernet/intel/e100.c:1349\n e100_load_ucode_wait() warn: passing zero to 'PTR_ERR'\n\nSigned-off-by: YueHaibing <yuehaibing@huawei.com>\n---\n drivers/net/ethernet/intel/e100.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/e100.c b/drivers/net/ethernet/intel/e100.c\nindex 7c4b554..736115b 100644\n--- a/drivers/net/ethernet/intel/e100.c\n+++ b/drivers/net/ethernet/intel/e100.c\n@@ -1345,8 +1345,8 @@ static inline int e100_load_ucode_wait(struct nic *nic)\n \n \tfw = e100_request_firmware(nic);\n \t/* If it's NULL, then no ucode is required */\n-\tif (!fw || IS_ERR(fw))\n-\t\treturn PTR_ERR(fw);\n+\tif (IS_ERR_OR_NULL(fw))\n+\t\treturn PTR_ERR_OR_ZERO(fw);\n \n \tif ((err = e100_exec_cb(nic, (void *)fw, e100_setup_ucode)))\n \t\tnetif_err(nic, probe, nic->netdev,\n",
    "prefixes": [
        "net-next"
    ]
}