get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2217887,
    "url": "http://patchwork.ozlabs.org/api/patches/2217887/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/24161ec41f118ad097387f8a84897dee7b4747b8.1774904832.git.balaton@eik.bme.hu/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api",
        "name": "QEMU Development",
        "link_name": "qemu-devel",
        "list_id": "qemu-devel.nongnu.org",
        "list_email": "qemu-devel@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<24161ec41f118ad097387f8a84897dee7b4747b8.1774904832.git.balaton@eik.bme.hu>",
    "list_archive_url": null,
    "date": "2026-03-30T21:09:16",
    "name": "[1/2] ati-vga: Silence warning about operator precedence",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "1a02e3225fb447b331b5ffee93b5097b7e1538db",
    "submitter": {
        "id": 16148,
        "url": "http://patchwork.ozlabs.org/api/people/16148/?format=api",
        "name": "BALATON Zoltan",
        "email": "balaton@eik.bme.hu"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/24161ec41f118ad097387f8a84897dee7b4747b8.1774904832.git.balaton@eik.bme.hu/mbox/",
    "series": [
        {
            "id": 498094,
            "url": "http://patchwork.ozlabs.org/api/series/498094/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=498094",
            "date": "2026-03-30T21:09:17",
            "name": "ati-vga Coverity fixes",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/498094/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2217887/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2217887/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)",
        "Received": [
            "from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fl3mS2jHcz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 08:10:00 +1100 (AEDT)",
            "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1w7JrQ-0006j1-4r; Mon, 30 Mar 2026 17:09:24 -0400",
            "from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <balaton@eik.bme.hu>)\n id 1w7JrO-0006ig-QA\n for qemu-devel@nongnu.org; Mon, 30 Mar 2026 17:09:22 -0400",
            "from zero.eik.bme.hu ([152.66.115.2])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <balaton@eik.bme.hu>)\n id 1w7JrM-0001XI-Kd\n for qemu-devel@nongnu.org; Mon, 30 Mar 2026 17:09:22 -0400",
            "from localhost (localhost [127.0.0.1])\n by zero.eik.bme.hu (Postfix) with ESMTP id 934375969EC;\n Mon, 30 Mar 2026 23:09:18 +0200 (CEST)",
            "from zero.eik.bme.hu ([127.0.0.1])\n by localhost (zero.eik.bme.hu [127.0.0.1]) (amavis, port 10028) with ESMTP\n id MjuE2w2rx-gu; Mon, 30 Mar 2026 23:09:16 +0200 (CEST)",
            "by zero.eik.bme.hu (Postfix, from userid 432)\n id 941ED5969F2; Mon, 30 Mar 2026 23:09:16 +0200 (CEST)"
        ],
        "X-Virus-Scanned": "amavis at eik.bme.hu",
        "Message-ID": "\n <24161ec41f118ad097387f8a84897dee7b4747b8.1774904832.git.balaton@eik.bme.hu>",
        "In-Reply-To": "<cover.1774904832.git.balaton@eik.bme.hu>",
        "References": "<cover.1774904832.git.balaton@eik.bme.hu>",
        "From": "BALATON Zoltan <balaton@eik.bme.hu>",
        "Subject": "[PATCH 1/2] ati-vga: Silence warning about operator precedence",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "To": "qemu-devel@nongnu.org",
        "Cc": "Gerd Hoffmann <kraxel@redhat.com>, marcandre.lureau@redhat.com,\n Chad Jablonski <chad@jablonski.xyz>,\n =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>,\n Peter Maydell <peter.maydell@linaro.org>",
        "Date": "Mon, 30 Mar 2026 23:09:16 +0200 (CEST)",
        "Received-SPF": "pass client-ip=152.66.115.2; envelope-from=balaton@eik.bme.hu;\n helo=zero.eik.bme.hu",
        "X-Spam_score_int": "1",
        "X-Spam_score": "0.1",
        "X-Spam_bar": "/",
        "X-Spam_report": "(0.1 / 5.0 requ) BAYES_00=-1.9,\n RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=1, RCVD_IN_VALIDITY_RPBL_BLOCKED=1,\n SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no",
        "X-Spam_action": "no action",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "qemu development <qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>",
        "List-Post": "<mailto:qemu-devel@nongnu.org>",
        "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"
    },
    "content": "Coverity in CID 1645969 warns about possible operator precendence\nissue which is a false positive in this case but simplify the\nexpression to silence the warning.\n\nSigned-off-by: BALATON Zoltan <balaton@eik.bme.hu>\n---\n hw/display/ati_2d.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/hw/display/ati_2d.c b/hw/display/ati_2d.c\nindex 23527b2c50..9baf6ff37b 100644\n--- a/hw/display/ati_2d.c\n+++ b/hw/display/ati_2d.c\n@@ -91,7 +91,7 @@ static void setup_2d_blt_ctx(const ATIVGAState *s, ATI2DCtx *ctx)\n     ctx->host_data_active = s->host_data.active;\n     ctx->left_to_right = s->regs.dp_cntl & DST_X_LEFT_TO_RIGHT;\n     ctx->top_to_bottom = s->regs.dp_cntl & DST_Y_TOP_TO_BOTTOM;\n-    ctx->need_swap = HOST_BIG_ENDIAN != s->vga.big_endian_fb ? true : false;\n+    ctx->need_swap = (HOST_BIG_ENDIAN != s->vga.big_endian_fb);\n     ctx->frgd_clr = s->regs.dp_brush_frgd_clr;\n     ctx->palette = s->vga.palette;\n     ctx->dst_offset = s->regs.dst_offset;\n",
    "prefixes": [
        "1/2"
    ]
}