get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1283281,
    "url": "http://patchwork.ozlabs.org/api/patches/1283281/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20200505074157.40938-1-yanaijie@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": "<20200505074157.40938-1-yanaijie@huawei.com>",
    "list_archive_url": null,
    "date": "2020-05-05T07:41:57",
    "name": "[net-next] ixgbe: Remove conversion to bool in ixgbe_device_supports_autoneg_fc()",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "2275c3246529fb3daa7fd35c99d3940f878c3d18",
    "submitter": {
        "id": 71145,
        "url": "http://patchwork.ozlabs.org/api/people/71145/?format=api",
        "name": "Jason Yan",
        "email": "yanaijie@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/20200505074157.40938-1-yanaijie@huawei.com/mbox/",
    "series": [
        {
            "id": 174689,
            "url": "http://patchwork.ozlabs.org/api/series/174689/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=174689",
            "date": "2020-05-05T07:41:57",
            "name": "[net-next] ixgbe: Remove conversion to bool in ixgbe_device_supports_autoneg_fc()",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/174689/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1283281/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1283281/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 spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org\n (client-ip=140.211.166.137; helo=fraxinus.osuosl.org;\n envelope-from=intel-wired-lan-bounces@osuosl.org; receiver=<UNKNOWN>)",
            "ozlabs.org;\n dmarc=none (p=none dis=none) header.from=huawei.com"
        ],
        "Received": [
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 49GWsv4BJ4z9sSk\n\tfor <incoming@patchwork.ozlabs.org>; Tue,  5 May 2020 17:42:56 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 29CAE86A5B;\n\tTue,  5 May 2020 07:42:54 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id RkcgUSlUzRYK; Tue,  5 May 2020 07:42:52 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 7D50986A59;\n\tTue,  5 May 2020 07:42:52 +0000 (UTC)",
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n by ash.osuosl.org (Postfix) with ESMTP id 50ECF1BF313\n for <intel-wired-lan@lists.osuosl.org>; Tue,  5 May 2020 07:42:51 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by fraxinus.osuosl.org (Postfix) with ESMTP id 4BFF186A59\n for <intel-wired-lan@lists.osuosl.org>; Tue,  5 May 2020 07:42:51 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n with ESMTP id PUj3ptOxFeq3 for <intel-wired-lan@lists.osuosl.org>;\n Tue,  5 May 2020 07:42:50 +0000 (UTC)",
            "from huawei.com (szxga07-in.huawei.com [45.249.212.35])\n by fraxinus.osuosl.org (Postfix) with ESMTPS id ED4A686A57\n for <intel-wired-lan@lists.osuosl.org>; Tue,  5 May 2020 07:42:49 +0000 (UTC)",
            "from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60])\n by Forcepoint Email with ESMTP id 760F6BFCF16D399DC908;\n Tue,  5 May 2020 15:42:45 +0800 (CST)",
            "from huawei.com (10.175.124.28) by DGGEMS401-HUB.china.huawei.com\n (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Tue, 5 May 2020\n 15:42:35 +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": "Jason Yan <yanaijie@huawei.com>",
        "To": "<jeffrey.t.kirsher@intel.com>, <davem@davemloft.net>,\n <intel-wired-lan@lists.osuosl.org>, <netdev@vger.kernel.org>,\n <linux-kernel@vger.kernel.org>",
        "Date": "Tue, 5 May 2020 15:41:57 +0800",
        "Message-ID": "<20200505074157.40938-1-yanaijie@huawei.com>",
        "X-Mailer": "git-send-email 2.21.1",
        "MIME-Version": "1.0",
        "X-Originating-IP": "[10.175.124.28]",
        "X-CFilter-Loop": "Reflected",
        "Subject": "[Intel-wired-lan] [PATCH net-next] ixgbe: Remove conversion to bool\n in ixgbe_device_supports_autoneg_fc()",
        "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 <intel-wired-lan.osuosl.org>",
        "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>,\n <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 <mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>",
        "Cc": "Jason Yan <yanaijie@huawei.com>",
        "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": "No need to convert '==' expression to bool. This fixes the following\ncoccicheck warning:\n\ndrivers/net/ethernet/intel/ixgbe/ixgbe_common.c:68:11-16: WARNING:\nconversion to bool not needed here\n\nSigned-off-by: Jason Yan <yanaijie@huawei.com>\n---\n drivers/net/ethernet/intel/ixgbe/ixgbe_common.c | 3 +--\n 1 file changed, 1 insertion(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c\nindex 0bd1294ba517..2d896d663e3d 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c\n@@ -64,8 +64,7 @@ bool ixgbe_device_supports_autoneg_fc(struct ixgbe_hw *hw)\n \t\t\thw->mac.ops.check_link(hw, &speed, &link_up, false);\n \t\t\t/* if link is down, assume supported */\n \t\t\tif (link_up)\n-\t\t\t\tsupported = speed == IXGBE_LINK_SPEED_1GB_FULL ?\n-\t\t\t\ttrue : false;\n+\t\t\t\tsupported = speed == IXGBE_LINK_SPEED_1GB_FULL;\n \t\t\telse\n \t\t\t\tsupported = true;\n \t\t}\n",
    "prefixes": [
        "net-next"
    ]
}