Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2070317/?format=api
{ "id": 2070317, "url": "http://patchwork.ozlabs.org/api/patches/2070317/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20250408-excluded-middle-fixes-v1-1-38233f18a554@ti.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20250408-excluded-middle-fixes-v1-1-38233f18a554@ti.com>", "list_archive_url": null, "date": "2025-04-08T21:57:34", "name": "net: dhcpv6: remove excluded middle expression", "commit_ref": "473032619f5056ede0517e1a926b09d0038567ed", "pull_url": null, "state": "accepted", "archived": false, "hash": "102138c9c5f9b499bf992db1ff8748d4eb1f03f2", "submitter": { "id": 83354, "url": "http://patchwork.ozlabs.org/api/people/83354/?format=api", "name": "Bryan Brattlof", "email": "bb@ti.com" }, "delegate": { "id": 157425, "url": "http://patchwork.ozlabs.org/api/users/157425/?format=api", "username": "jforissier", "first_name": "Jerome", "last_name": "Forissier", "email": "jerome.forissier@linaro.org" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20250408-excluded-middle-fixes-v1-1-38233f18a554@ti.com/mbox/", "series": [ { "id": 451844, "url": "http://patchwork.ozlabs.org/api/series/451844/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=451844", "date": "2025-04-08T21:57:34", "name": "net: dhcpv6: remove excluded middle expression", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/451844/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2070317/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2070317/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=ti.com header.i=@ti.com header.a=rsa-sha256\n header.s=ti-com-17Q1 header.b=FN7HtOAm;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=85.214.62.61; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)", "phobos.denx.de;\n dmarc=pass (p=quarantine dis=none) header.from=ti.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=ti.com header.i=@ti.com header.b=\"FN7HtOAm\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=pass (p=quarantine dis=none) header.from=ti.com", "phobos.denx.de; spf=pass smtp.mailfrom=bb@ti.com" ], "Received": [ "from phobos.denx.de (phobos.denx.de [85.214.62.61])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature ECDSA (secp384r1))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4ZXKgZ5yKsz1yHb\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 9 Apr 2025 07:57:30 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id BAC2D820E3;\n\tTue, 8 Apr 2025 23:57:45 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id AB14E82AA3; Tue, 8 Apr 2025 23:57:44 +0200 (CEST)", "from lelvem-ot02.ext.ti.com (lelvem-ot02.ext.ti.com [198.47.23.235])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n bits)) (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 57AE1820E2\n for <u-boot@lists.denx.de>; Tue, 8 Apr 2025 23:57:42 +0200 (CEST)", "from lelv0266.itg.ti.com ([10.180.67.225])\n by lelvem-ot02.ext.ti.com (8.15.2/8.15.2) with ESMTPS id 538LvdY71299003\n (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n Tue, 8 Apr 2025 16:57:39 -0500", "from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29])\n by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 538LvdXI125943\n (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL);\n Tue, 8 Apr 2025 16:57:39 -0500", "from DFLE112.ent.ti.com (10.64.6.33) by DFLE108.ent.ti.com\n (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 8\n Apr 2025 16:57:39 -0500", "from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE112.ent.ti.com\n (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via\n Frontend Transport; Tue, 8 Apr 2025 16:57:39 -0500", "from localhost (bb.dhcp.ti.com [128.247.81.12])\n by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 538LvdWu069860;\n Tue, 8 Apr 2025 16:57:39 -0500" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,\n RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED,\n RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_PASS,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com;\n s=ti-com-17Q1; t=1744149459;\n bh=pAClCJDZqIgB5fw0BhLNNKV8aX3wSUV1jZyqhXh+tgM=;\n h=From:Date:Subject:To:CC;\n b=FN7HtOAmb+zBwphYDcxzva7qZkTSQEltGhv3ERYlX+aNXoCzRTSMYGR3Rw0sgo68W\n x/VwWUTj/NvGhfp0+5xFJxDC/H0rHB6nwW1ulMrEVWIBm46YYRK5raNcJChchZa7SM\n +66Er0HT6sxs0DVh66hmtELA2l6ht94YN7hfy4jA=", "From": "Bryan Brattlof <bb@ti.com>", "Date": "Tue, 8 Apr 2025 16:57:34 -0500", "Subject": "[PATCH] net: dhcpv6: remove excluded middle expression", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "Message-ID": "<20250408-excluded-middle-fixes-v1-1-38233f18a554@ti.com>", "X-B4-Tracking": "v=1; b=H4sIAM2b9WcC/x3LQQqDMBBG4avIrDswSmpCryJdiPPHDlgrCUpAv\n Luhy4/HOykjGTK9mpMSDsv2WyvaR0PTZ1xnsGk1ddI9xUlglGnZFcpfU13A0Qoya/DOj71EL4H\n quyX8Q12H93XdWKdrbGcAAAA=", "To": "Joe Hershberger <joe.hershberger@ni.com>, Ramon Fried\n <rfried.dev@gmail.com>, Tom Rini <trini@konsulko.com>", "CC": "<u-boot@lists.denx.de>, Bryan Brattlof <bb@ti.com>", "X-Mailer": "b4 0.13.0", "X-Developer-Signature": "v=1; a=openpgp-sha256; l=1040; i=bb@ti.com;\n h=from:subject:message-id; bh=n+qhMy3Q3JYF4ajSjjuh/DwszsojboC9VwGy+uBaFu0=;\n b=owNCWmg5MUFZJlNZ5JdaTgAAZ3////9/vzn7/83fppbsP5fvb39zw//9G3d/fuz99/pqj22wA\n RtqI7UDIaaBo9RoAAeoGhoAAAaNGg0NBtQAAMQAAANANNDE00DEMmjTBpNo1DkDIBkaA0NAGg0A\n G1NDQGhpoNAPUDI0aaGg0AGI9TEAyMgNGmagaAMQaaMm1Dpo0YI00BkwTQAaDTINMjQAGgyGjQN\n MJkyaGhiGIxAGhoA0AaAyA0NAMmQECbB8AZYHUoXBuwkTTCYv94G1BLBMzq2iAyE8oUbEAM0Re9\n oBwBW30lx2TgRRuRYepSlCwKdrofPxnkVBfLQMigy5vfAM0J+L7JiEr566skRwYUDITi5yjCtuy\n 6WEq9NOWYo+UZe9HqFVXYHysJDGL7DcgdSQa8INHrVkZoFvJOuySKLXVZ7WPQK/0+1SjjxZRaNu\n n68juqtf1RFcsdaMQgBu9AEG9KuQZBNGW2sn2xA+rjcCw6ogFoVWnELwUyk5rkJBpd4VJb35e5b\n jjilojw3O9yFnN4CqEZNeaplsBIgMWxCnMAnxB94zIn2On1uy8ZkbLRTVS1NlEhHcwLBorlf2ZB\n GPBk1z0uRTTBLiGRwXGCAJPfgAQ078mRLI3adB5NCoRDAAjNezF3EAud/FQRWyjnOaQ46MEEMA4\n NzwgKBzbiZoH+LuSKcKEhyS60nA", "X-Developer-Key": "i=bb@ti.com; a=openpgp;\n fpr=D3D177E40A38DF4D1853FEEF41B90D5D71D56CE0", "X-C2ProcessedOrg": "333ef613-75bf-4e12-a4b1-8e3623f5dcea", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.39", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>", "X-Virus-Scanned": "clamav-milter 0.103.8 at phobos.denx.de", "X-Virus-Status": "Clean" }, "content": "!A || (A && B) is equivalent to !A || B\n\nDrop the middle expression from the statement\n\nSigned-off-by: Bryan Brattlof <bb@ti.com>\n---\n net/dhcpv6.c | 3 +--\n 1 file changed, 1 insertion(+), 2 deletions(-)\n\n\n---\nbase-commit: 9d9fbdab0e9664bff147109cc89ad2786f6ecd83\nchange-id: 20250408-excluded-middle-fixes-d8747a60f708\n\nBest regards,", "diff": "diff --git a/net/dhcpv6.c b/net/dhcpv6.c\nindex 54619ee698362..65ec48ef665e5 100644\n--- a/net/dhcpv6.c\n+++ b/net/dhcpv6.c\n@@ -473,8 +473,7 @@ static int dhcp6_check_advertise_packet(uchar *rx_pkt, unsigned int len)\n \t\t * server UID, save the new server UID and preference\n \t\t */\n \t\tif (!sm_params.server_uid.uid_ptr ||\n-\t\t (sm_params.server_uid.uid_ptr &&\n-\t\t sm_params.server_uid.preference < sm_params.rx_status.preference)) {\n+\t\t sm_params.server_uid.preference < sm_params.rx_status.preference) {\n \t\t\trx_uid_size = sm_params.rx_status.server_uid_size;\n \t\t\tif (sm_params.server_uid.uid_ptr)\n \t\t\t\tfree(sm_params.server_uid.uid_ptr);\n", "prefixes": [] }