get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 803756,
    "url": "http://patchwork.ozlabs.org/api/patches/803756/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170820155328.882-1-christophe.jaillet@wanadoo.fr/",
    "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": "<20170820155328.882-1-christophe.jaillet@wanadoo.fr>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20170820155328.882-1-christophe.jaillet@wanadoo.fr/",
    "date": "2017-08-20T15:53:28",
    "name": "[2/2] soc/fsl/qe: Slighly simplify code",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": false,
    "hash": "c52f9d1d567dff3e53058c06ae755f0f970450cd",
    "submitter": {
        "id": 66309,
        "url": "http://patchwork.ozlabs.org/api/people/66309/?format=api",
        "name": "Christophe JAILLET",
        "email": "christophe.jaillet@wanadoo.fr"
    },
    "delegate": {
        "id": 1707,
        "url": "http://patchwork.ozlabs.org/api/users/1707/?format=api",
        "username": "scottwood",
        "first_name": "Scott",
        "last_name": "Wood",
        "email": "scottwood@freescale.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170820155328.882-1-christophe.jaillet@wanadoo.fr/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/803756/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/803756/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 3xb1dH1ZzSz9t2K\n\tfor <patchwork-incoming@ozlabs.org>;\n\tMon, 21 Aug 2017 01:56:03 +1000 (AEST)",
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xb1dH0lvVzDqn6\n\tfor <patchwork-incoming@ozlabs.org>;\n\tMon, 21 Aug 2017 01:56:03 +1000 (AEST)",
            "from smtp.smtpout.orange.fr (smtp11.smtpout.orange.fr\n\t[80.12.242.133])\n\t(using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xb1ZR56VgzDqgk\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tMon, 21 Aug 2017 01:53:35 +1000 (AEST)",
            "from localhost.localdomain ([90.21.44.83]) by mwinf5d46 with ME\n\tid zTtX1v00S1ngAYy03TtYgz; Sun, 20 Aug 2017 17:53:32 +0200"
        ],
        "X-ME-Helo": "localhost.localdomain",
        "X-ME-Auth": "Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI=",
        "X-ME-Date": "Sun, 20 Aug 2017 17:53:32 +0200",
        "X-ME-IP": "90.21.44.83",
        "From": "Christophe JAILLET <christophe.jaillet@wanadoo.fr>",
        "To": "qiang.zhao@nxp.com,\n\tleoyang.li@nxp.com",
        "Subject": "[PATCH 2/2] soc/fsl/qe: Slighly simplify code",
        "Date": "Sun, 20 Aug 2017 17:53:28 +0200",
        "Message-Id": "<20170820155328.882-1-christophe.jaillet@wanadoo.fr>",
        "X-Mailer": "git-send-email 2.11.0",
        "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": "kernel-janitors@vger.kernel.org,\n\tChristophe JAILLET <christophe.jaillet@wanadoo.fr>,\n\tlinuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org,\n\tlinux-arm-kernel@lists.infradead.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": "Return 0 instead of 'ret' (which is 0 at this point) to make the code more\nexplicit.\nAlso avoid a useless initialization of 'ret'.\n\nSigned-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>\n---\n drivers/soc/fsl/qe/qe_tdm.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/soc/fsl/qe/qe_tdm.c b/drivers/soc/fsl/qe/qe_tdm.c\nindex 6b9647fee512..c90c72ca9e3e 100644\n--- a/drivers/soc/fsl/qe/qe_tdm.c\n+++ b/drivers/soc/fsl/qe/qe_tdm.c\n@@ -42,7 +42,7 @@ int ucc_of_parse_tdm(struct device_node *np, struct ucc_tdm *utdm,\n \t\t     struct ucc_tdm_info *ut_info)\n {\n \tconst char *sprop;\n-\tint ret = 0;\n+\tint ret;\n \tu32 val;\n \tstruct resource *res;\n \tstruct device_node *np2;\n@@ -171,7 +171,7 @@ int ucc_of_parse_tdm(struct device_node *np, struct ucc_tdm *utdm,\n \t\tsiram_init_flag = 1;\n \t}\n \n-\treturn ret;\n+\treturn 0;\n \n err_miss_siram_property:\n \treturn ret;\n",
    "prefixes": [
        "2/2"
    ]
}