get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1225464,
    "url": "http://patchwork.ozlabs.org/api/patches/1225464/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20200119132138.37781-1-chenzhou10@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": "<20200119132138.37781-1-chenzhou10@huawei.com>",
    "list_archive_url": null,
    "date": "2020-01-19T13:21:38",
    "name": "[-next] i40e: remove unnecessary conversions to bool",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "120b403e4c436827989eb7e0167cc846e52907d6",
    "submitter": {
        "id": 76326,
        "url": "http://patchwork.ozlabs.org/api/people/76326/?format=api",
        "name": "chenzhou",
        "email": "chenzhou10@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/20200119132138.37781-1-chenzhou10@huawei.com/mbox/",
    "series": [
        {
            "id": 154073,
            "url": "http://patchwork.ozlabs.org/api/series/154073/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=154073",
            "date": "2020-01-19T13:21:38",
            "name": "[-next] i40e: remove unnecessary conversions to bool",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/154073/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1225464/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1225464/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; spf=pass (sender SPF authorized)\n\tsmtp.mailfrom=osuosl.org (client-ip=140.211.166.138;\n\thelo=whitealder.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 whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\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 480wYx4T4fz9sPJ\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 20 Jan 2020 00:26:45 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 39D5A84F75;\n\tSun, 19 Jan 2020 13:26:43 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id XboUz6lQESbe; Sun, 19 Jan 2020 13:26:42 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 82C7484CF3;\n\tSun, 19 Jan 2020 13:26:42 +0000 (UTC)",
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id A04A51BF5A4\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tSun, 19 Jan 2020 13:26:41 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 9A5BC84CF3\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tSun, 19 Jan 2020 13:26:41 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 7OFHoACnlqMu for <intel-wired-lan@lists.osuosl.org>;\n\tSun, 19 Jan 2020 13:26:39 +0000 (UTC)",
            "from huawei.com (szxga06-in.huawei.com [45.249.212.32])\n\tby whitealder.osuosl.org (Postfix) with ESMTPS id 12D2E84CE1\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tSun, 19 Jan 2020 13:26:38 +0000 (UTC)",
            "from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60])\n\tby Forcepoint Email with ESMTP id DDBCC9ECDC1DC337FF24;\n\tSun, 19 Jan 2020 21:26:33 +0800 (CST)",
            "from localhost.localdomain.localdomain (10.175.113.25) by\n\tDGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP\n\tServer id 14.3.439.0; Sun, 19 Jan 2020 21:26:24 +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": "Chen Zhou <chenzhou10@huawei.com>",
        "To": "<jeffrey.t.kirsher@intel.com>, <davem@davemloft.net>",
        "Date": "Sun, 19 Jan 2020 21:21:38 +0800",
        "Message-ID": "<20200119132138.37781-1-chenzhou10@huawei.com>",
        "X-Mailer": "git-send-email 2.20.1",
        "MIME-Version": "1.0",
        "X-Originating-IP": "[10.175.113.25]",
        "X-CFilter-Loop": "Reflected",
        "Subject": "[Intel-wired-lan] [PATCH -next] i40e: remove unnecessary\n\tconversions to bool",
        "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": "chenzhou10@huawei.com, netdev@vger.kernel.org,\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": "The conversions to bool are not needed, remove these.\n\nSigned-off-by: Chen Zhou <chenzhou10@huawei.com>\n---\n drivers/net/ethernet/intel/i40e/i40e_main.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c\nindex 33912cf..24cacfa 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_main.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c\n@@ -1630,7 +1630,7 @@ static int i40e_config_rss_aq(struct i40e_vsi *vsi, const u8 *seed,\n \t\t}\n \t}\n \tif (lut) {\n-\t\tbool pf_lut = vsi->type == I40E_VSI_MAIN ? true : false;\n+\t\tbool pf_lut = vsi->type == I40E_VSI_MAIN;\n \n \t\tret = i40e_aq_set_rss_lut(hw, vsi->id, pf_lut, lut, lut_size);\n \t\tif (ret) {\n@@ -11455,7 +11455,7 @@ static int i40e_get_rss_aq(struct i40e_vsi *vsi, const u8 *seed,\n \t}\n \n \tif (lut) {\n-\t\tbool pf_lut = vsi->type == I40E_VSI_MAIN ? true : false;\n+\t\tbool pf_lut = vsi->type == I40E_VSI_MAIN;\n \n \t\tret = i40e_aq_get_rss_lut(hw, vsi->id, pf_lut, lut, lut_size);\n \t\tif (ret) {\n",
    "prefixes": [
        "-next"
    ]
}