get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 806303,
    "url": "http://patchwork.ozlabs.org/api/patches/806303/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/019499e0-68d8-b89d-f5d6-6aefd9cbaf04@users.sourceforge.net/",
    "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": "<019499e0-68d8-b89d-f5d6-6aefd9cbaf04@users.sourceforge.net>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/019499e0-68d8-b89d-f5d6-6aefd9cbaf04@users.sourceforge.net/",
    "date": "2017-08-27T20:10:08",
    "name": "leds-PowerNV: Delete an error message for a failed memory allocation in powernv_led_create()",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": false,
    "hash": "4d744dc0a48eac1882c3425f7f753ca8776024db",
    "submitter": {
        "id": 65077,
        "url": "http://patchwork.ozlabs.org/api/people/65077/?format=api",
        "name": "SF Markus Elfring",
        "email": "elfring@users.sourceforge.net"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/019499e0-68d8-b89d-f5d6-6aefd9cbaf04@users.sourceforge.net/mbox/",
    "series": [
        {
            "id": 45,
            "url": "http://patchwork.ozlabs.org/api/series/45/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=45",
            "date": "2017-08-27T20:10:08",
            "name": "leds-PowerNV: Delete an error message for a failed memory allocation in powernv_led_create()",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/45/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/806303/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/806303/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 [103.22.144.68])\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 3xgR5c0fFXz9s8V\n\tfor <patchwork-incoming@ozlabs.org>;\n\tMon, 28 Aug 2017 06:17:24 +1000 (AEST)",
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xgR5b6w29zDr34\n\tfor <patchwork-incoming@ozlabs.org>;\n\tMon, 28 Aug 2017 06:17:23 +1000 (AEST)",
            "from mout.web.de (mout.web.de [212.227.17.12])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xgR4M5z5QzDqgq\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tMon, 28 Aug 2017 06:16:19 +1000 (AEST)",
            "from [192.168.1.2] ([78.49.107.235]) by smtp.web.de (mrweb103\n\t[213.165.67.124]) with ESMTPSA (Nemesis) id 0LnB9V-1dKRlx3H5x-00hRYA;\n\tSun, 27 Aug 2017 22:10:13 +0200"
        ],
        "To": "linux-leds@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,\n\tBenjamin Herrenschmidt <benh@kernel.crashing.org>,\n\tJacek Anaszewski <jacek.anaszewski@gmail.com>,\n\tMichael Ellerman <mpe@ellerman.id.au>,\n\tPaul Mackerras <paulus@samba.org>, \n\tPavel Machek <pavel@ucw.cz>, Richard Purdie <rpurdie@rpsys.net>",
        "From": "SF Markus Elfring <elfring@users.sourceforge.net>",
        "Subject": "[PATCH] leds-PowerNV: Delete an error message for a failed memory\n\tallocation in powernv_led_create()",
        "Message-ID": "<019499e0-68d8-b89d-f5d6-6aefd9cbaf04@users.sourceforge.net>",
        "Date": "Sun, 27 Aug 2017 22:10:08 +0200",
        "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=utf-8",
        "Content-Language": "en-GB",
        "Content-Transfer-Encoding": "7bit",
        "X-Provags-ID": "V03:K0:YhRBFjl+M200bpeh8dagQrpz5DJqQi1AtpTdR1UzuxBygS5jZ4j\n\tnYAh8NjkUHazD35eLDDwynJQT4laKUXdpeOC1EKsG4N65TKbe5QXCYs8fB5TfJdWhngW7eP\n\tAOjMk350gpXZRXhzGkHUVybLHClYW00lEqvUCPX22+/yboohut9/GajZJushZvP4hxwUXkC\n\tdmiGwCs/eCK042rqzP3dw==",
        "X-UI-Out-Filterresults": "notjunk:1; V01:K0:sKQzpXnFgn0=:TZUJTCp+Ok7yL5ShKX9oAw\n\t+pwrQ6xIvJ7xjC4TH5mU4dRLjmTYX2Qa1M2QpgGbOnhhs36pm13XUCi78sysTiaLtwrNC/5gk\n\tlLlmRXfefNDM85kIQzJbw7IOlN6fm9KBeTGXQ8ylk/7vU4zYDkMvhFEhaxRR6LSPSNQHzxr/g\n\tSe1J7EMbekw/Bj1a6yad8dMxQPipBj0LU3H/LncQT27V0qwEVOUc4L8lJrsayVb4oPCf/XkXN\n\tjUblZjSA4bM7+Q6jKtBm/6bVSlQ4ZAoFg0hzvQxooe9MXCGgeh1r9ICEjCN8p4YiJoHNDlz58\n\tO21KK6OTIUP33HjUSn96JfoDIBoKmZgp9o2PnRMwwBZfrZBwQSv6GPY2xZ4zE03ro5mEbY/+u\n\tzbBSdIvq2nrh0qc5XjaUTEyJz7Q+0MAZDEo9p4Rq3DRxFcfwT4Y44x/VQUXLVhBLB6e5Bwszk\n\tg44ioMHwK2iMETqJG55UXgcn8Db2AF0gMp0ZEWTWByLFHvJPGvhJtyhRi34IJ4Kx1uCzrq7Ig\n\tM9w7tOmGsmHRqAMgimaaTlPjIWrNo4C02zUbzs24W+PXtcB2gubpIyHSHlpFVlPB7gBLOMP1C\n\ths2ABkKeORjkvwcZ4qsPcv+luMzBrgDGkKXdqh4ETNlpwnY/kN6DNmWtwN51r3R6C1T66F3Up\n\tIoPtxif6EMC7DgVlmXqZZfUybeTEY3ciDuOtXXBh8ac5rm64/SoRyu+E8w4lRuPSvTl4iydcg\n\tt0UDNQYxTgGRLgn5calmU/LWxVLovVu/JsnVqpBryfUU+hGVf8WLRl3E2RbUc9pBwdG5EvLKq\n\tBVfRme0Olh4oEeZ7VAOmpiLlWIXY0avJY/ozjhjmJotcR5BkmI=",
        "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, LKML <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": "From: Markus Elfring <elfring@users.sourceforge.net>\nDate: Sun, 27 Aug 2017 22:00:22 +0200\n\nOmit an extra message for a memory allocation failure in this function.\n\nThis issue was detected by using the Coccinelle software.\n\nSigned-off-by: Markus Elfring <elfring@users.sourceforge.net>\n---\n drivers/leds/leds-powernv.c | 6 +-----\n 1 file changed, 1 insertion(+), 5 deletions(-)",
    "diff": "diff --git a/drivers/leds/leds-powernv.c b/drivers/leds/leds-powernv.c\nindex b2a98c7b521b..b1adbd70ce2e 100644\n--- a/drivers/leds/leds-powernv.c\n+++ b/drivers/leds/leds-powernv.c\n@@ -224,12 +224,8 @@ static int powernv_led_create(struct device *dev,\n \tpowernv_led->cdev.name = devm_kasprintf(dev, GFP_KERNEL, \"%s:%s\",\n \t\t\t\t\t\tpowernv_led->loc_code,\n \t\t\t\t\t\tled_type_desc);\n-\tif (!powernv_led->cdev.name) {\n-\t\tdev_err(dev,\n-\t\t\t\"%s: Memory allocation failed for classdev name\\n\",\n-\t\t\t__func__);\n+\tif (!powernv_led->cdev.name)\n \t\treturn -ENOMEM;\n-\t}\n \n \tpowernv_led->cdev.brightness_set_blocking = powernv_brightness_set;\n \tpowernv_led->cdev.brightness_get = powernv_brightness_get;\n",
    "prefixes": []
}