get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 809977,
    "url": "http://patchwork.ozlabs.org/api/patches/809977/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-tegra/patch/1504597276-22924-1-git-send-email-nicoleotsuka@gmail.com/",
    "project": {
        "id": 21,
        "url": "http://patchwork.ozlabs.org/api/projects/21/?format=api",
        "name": "Linux Tegra Development",
        "link_name": "linux-tegra",
        "list_id": "linux-tegra.vger.kernel.org",
        "list_email": "linux-tegra@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1504597276-22924-1-git-send-email-nicoleotsuka@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-05T07:41:16",
    "name": "[v2] thermal: tegra: remove null check for dev pointer",
    "commit_ref": null,
    "pull_url": null,
    "state": "deferred",
    "archived": false,
    "hash": "72dd6166752a463953e2fa12b984e8adf99e90eb",
    "submitter": {
        "id": 36301,
        "url": "http://patchwork.ozlabs.org/api/people/36301/?format=api",
        "name": "Nicolin Chen",
        "email": "nicoleotsuka@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-tegra/patch/1504597276-22924-1-git-send-email-nicoleotsuka@gmail.com/mbox/",
    "series": [
        {
            "id": 1501,
            "url": "http://patchwork.ozlabs.org/api/series/1501/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-tegra/list/?series=1501",
            "date": "2017-09-05T07:41:16",
            "name": "[v2] thermal: tegra: remove null check for dev pointer",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/1501/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/809977/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/809977/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linux-tegra-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-tegra-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"ryffmEDc\"; dkim-atps=neutral"
        ],
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xmdv84CKpz9s83\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue,  5 Sep 2017 17:41:24 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751270AbdIEHlW (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n\tTue, 5 Sep 2017 03:41:22 -0400",
            "from mail-pf0-f195.google.com ([209.85.192.195]:34109 \"EHLO\n\tmail-pf0-f195.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1750775AbdIEHlW (ORCPT\n\t<rfc822; linux-tegra@vger.kernel.org>); Tue, 5 Sep 2017 03:41:22 -0400",
            "by mail-pf0-f195.google.com with SMTP id y68so1325848pfd.1;\n\tTue, 05 Sep 2017 00:41:21 -0700 (PDT)",
            "from Asurada-Nvidia.nvidia.com (searspoint.nvidia.com.\n\t[216.228.112.21]) by smtp.gmail.com with ESMTPSA id\n\th185sm276890pfe.160.2017.09.05.00.41.20\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 05 Sep 2017 00:41:20 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id;\n\tbh=0EmvdC7zUHDxE/5ghIc63e3wsGY/KRQ1uaVrsQ4TXdQ=;\n\tb=ryffmEDcDOI5klQBr2I0XamzI7tnsyZXdhzNUzZZf6MDOWpKz+tlkwfSVP1V1YCb/K\n\tQm21uO7nuGq3b12aOYxF0eeoGtAqPFrO5pCDGuyaowC9M95w7zFLlyvZs4qAy106Jx5n\n\tXSpNwIGUmjoxl2gok7IolkztRwDtxXwnBM3pIft0juMcNfqFzz89vzWAyw9EvS8OYdCu\n\tNFdPm/ve06g3ADaoUBXDZACHD3EqeYqggHcRbiNKa1WurTnpz5SXWU+pTWmNvSmYl+fT\n\tI7HVOBbVPOPtctSxkdpzZVBC5IBY3WmUdVHsfkpdcAhp1Tm3EH2p2vJOaa4fkZRDFpfY\n\tYhNA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id;\n\tbh=0EmvdC7zUHDxE/5ghIc63e3wsGY/KRQ1uaVrsQ4TXdQ=;\n\tb=aXF9KPis6S9f+ZmAiypmWl4l+cYQQNoV7kLsm27+rz1zRvufoh0KDh011X9gsiMbNT\n\tbxgmNlVujA4okwYdkZ7WmDtyaoeQWi2m08Rb0Fe7vryVZ7sWIXGTNDu3SMSCd3P45qX9\n\t63xMeuL62nIsEUsHcWA34+loi8Fp4V9yAxiE1+BDOPfGEkBzorlVOpYYPN0rjGtH3XXn\n\taKmWgWp1eXUsMBlMMtl+RNO1l0WgmAImIq8N5O7FpKGDPC3O3pyT9F7vk8xnu3NP+RGk\n\tXx3UhG29toW+AnL28VtSQ5OUmCcaosa37hplXBi6rWXJaKnLsNsEVS35IQRtD6a3OYfQ\n\tr1dw==",
        "X-Gm-Message-State": "AHPjjUj8VWte/s9iv/wIkLbyM9K5GNYYetAaLSEY019j11HepZsiCLnD\n\tYNlyqPn27PNMpw==",
        "X-Google-Smtp-Source": "ADKCNb7xUetESYhF3F8Pb1VMih3EnyMtJ8iugnTas33h0eeVlcACg738v/sLWR3bTP/RKmtRzVrDoQ==",
        "X-Received": "by 10.98.149.208 with SMTP id c77mr2823588pfk.330.1504597281441; \n\tTue, 05 Sep 2017 00:41:21 -0700 (PDT)",
        "From": "Nicolin Chen <nicoleotsuka@gmail.com>",
        "To": "rui.zhang@intel.com",
        "Cc": "edubezval@gmail.com, thierry.reding@gmail.com,\n\tjonathanh@nvidia.com, wni@nvidia.com, linux-pm@vger.kernel.org,\n\tlinux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org,\n\tsrikars@nvidia.com",
        "Subject": "[PATCH v2] thermal: tegra: remove null check for dev pointer",
        "Date": "Tue,  5 Sep 2017 00:41:16 -0700",
        "Message-Id": "<1504597276-22924-1-git-send-email-nicoleotsuka@gmail.com>",
        "X-Mailer": "git-send-email 2.1.4",
        "Sender": "linux-tegra-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<linux-tegra.vger.kernel.org>",
        "X-Mailing-List": "linux-tegra@vger.kernel.org"
    },
    "content": "The dev pointer is going through a null check after a dereference.\nSo this patch removes that useless check since the driver does not\npass a null dev pointer in any case.\n\nSigned-off-by: Nicolin Chen <nicoleotsuka@gmail.com>\n---\nChangelog\nv2:\n * By following Thierry's comments, changed to remove the null pointer\n   check directly and revised the patch subject according.\n\n drivers/thermal/tegra/soctherm.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c\nindex 7d2db23..075db1d 100644\n--- a/drivers/thermal/tegra/soctherm.c\n+++ b/drivers/thermal/tegra/soctherm.c\n@@ -483,7 +483,7 @@ static int throttrip_program(struct device *dev,\n \tunsigned int throt;\n \tu32 r, reg_off;\n \n-\tif (!dev || !sg || !stc || !stc->init)\n+\tif (!sg || !stc || !stc->init)\n \t\treturn -EINVAL;\n \n \ttemp = enforce_temp_range(dev, trip_temp) / ts->soc->thresh_grain;\n",
    "prefixes": [
        "v2"
    ]
}