Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1450373/?format=api
{ "id": 1450373, "url": "http://patchwork.ozlabs.org/api/patches/1450373/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-um/patch/1615366148-5357-1-git-send-email-yang.lee@linux.alibaba.com/", "project": { "id": 60, "url": "http://patchwork.ozlabs.org/api/projects/60/?format=api", "name": "User-mode Linux Development", "link_name": "linux-um", "list_id": "linux-um.lists.infradead.org", "list_email": "linux-um@lists.infradead.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1615366148-5357-1-git-send-email-yang.lee@linux.alibaba.com>", "list_archive_url": null, "date": "2021-03-10T08:49:08", "name": "uml: remove unneeded variable 'ret'", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "4d12dde1269ef92693d3d6269ec22403df1dcac0", "submitter": { "id": 81034, "url": "http://patchwork.ozlabs.org/api/people/81034/?format=api", "name": "Yang Li", "email": "yang.lee@linux.alibaba.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-um/patch/1615366148-5357-1-git-send-email-yang.lee@linux.alibaba.com/mbox/", "series": [ { "id": 233129, "url": "http://patchwork.ozlabs.org/api/series/233129/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-um/list/?series=233129", "date": "2021-03-10T08:49:08", "name": "uml: remove unneeded variable 'ret'", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/233129/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1450373/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1450373/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": [ "ozlabs.org;\n spf=none (no SPF record) smtp.mailfrom=lists.infradead.org\n (client-ip=2001:8b0:10b:1:d65d:64ff:fe57:4e05; helo=desiato.infradead.org;\n envelope-from=linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n receiver=<UNKNOWN>)", "ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=lists.infradead.org header.i=@lists.infradead.org\n header.a=rsa-sha256 header.s=desiato.20200630 header.b=cCZ4GujP;\n\tdkim-atps=neutral" ], "Received": [ "from desiato.infradead.org (desiato.infradead.org\n [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4DwQkv3FRFz9sRf\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 10 Mar 2021 19:50:15 +1100 (AEDT)", "from localhost ([::1] helo=desiato.infradead.org)\n\tby desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux))\n\tid 1lJuXY-006M8x-KU; Wed, 10 Mar 2021 08:50:00 +0000", "from out30-133.freemail.mail.aliyun.com ([115.124.30.133])\n by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux))\n id 1lJuWs-006LgO-6b\n for linux-um@lists.infradead.org; Wed, 10 Mar 2021 08:49:22 +0000", "from\n j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com\n fp:SMTPD_---0UREgr3u_1615366150) by smtp.aliyun-inc.com(127.0.0.1);\n Wed, 10 Mar 2021 16:49:10 +0800" ], "DKIM-Signature": "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding\n\t:Content-Type:MIME-Version:List-Subscribe:List-Help:List-Post:List-Archive:\n\tList-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To:From:Reply-To:\n\tContent-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:\n\tResent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner;\n\tbh=4oxEeSaikjc1UKvJUAZwOyibYDogiQdPRZyIGsAmPjk=; b=cCZ4GujPK5AdDE9aljKbcQnoLJ\n\t9OMmkrZnN2/gWLeiJheI1ra/JdECwj1OUhcQw1VUY6h8RYMPsGSosQkebGgg/G5F0bGUTumv0EUK1\n\tuEz439iCp3dEG8tsgEZEfencEHRC7lDhK7IyGxG51WJt0eepPu8ndVFYq9Vzukty8e7cM9QDHuLHz\n\tJAkoEmuBwCxNYVpu1u/hYsn8efBwPw/I2SzQbqskcjtLegkpFtDC2Ti3zsnrnIluyutPwiyKykBFo\n\tW49lKnyCgpMpNmGH3vRUxfrl0DegyDBycY6c4gh9PpK7bhNui3dykLbwHNASIDmId6AyDnnvDUJNh\n\tmu9Nz8jQ==;", "X-Alimail-AntiSpam": "AC=PASS; BC=-1|-1; BR=01201311R361e4; CH=green;\n DM=||false|;\n DS=||; FP=0|-1|-1|-1|0|-1|-1|-1; HT=e01e04394; MF=yang.lee@linux.alibaba.com;\n NM=1; PH=DS; RN=6; SR=0; TI=SMTPD_---0UREgr3u_1615366150;", "From": "Yang Li <yang.lee@linux.alibaba.com>", "To": "jdike@addtoit.com", "Cc": "richard@nod.at, anton.ivanov@cambridgegreys.com,\n linux-um@lists.infradead.org, linux-kernel@vger.kernel.org,\n Yang Li <yang.lee@linux.alibaba.com>", "Subject": "[PATCH] uml: remove unneeded variable 'ret'", "Date": "Wed, 10 Mar 2021 16:49:08 +0800", "Message-Id": "<1615366148-5357-1-git-send-email-yang.lee@linux.alibaba.com>", "X-Mailer": "git-send-email 1.8.3.1", "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ", "X-CRM114-CacheID": "sfid-20210310_084918_645918_4AFA4348 ", "X-CRM114-Status": "UNSURE ( 6.79 )", "X-CRM114-Notice": "Please train this message.", "X-Spam-Score": "-8.0 (--------)", "X-Spam-Report": "Spam detection software,\n running on the system \"desiato.infradead.org\",\n has NOT identified this incoming email as spam. The original\n message has been attached to this so you can view it or label\n similar future email. If you have any questions, see\n the administrator of that system for details.\n Content preview: Fix the following coccicheck warning:\n ./arch/um/drivers/hostaudio_kern.c:125:10-14:\n Unneeded variable: \"mask\". Return \"0\" on line 131 Reported-by: Abaci Robot\n <abaci@linux.alibaba.com> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>\n --- arch/um/drivers/hostaudio_kern.c | 4 +--- 1 file changed, 1 insertion(+),\n 3 deletions(-)\n Content analysis details: (-8.0 points, 5.0 required)\n pts rule name description\n ---- ----------------------\n --------------------------------------------------\n -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/,\n no trust [115.124.30.133 listed in list.dnswl.org]\n 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record\n -7.5 USER_IN_DEF_SPF_WL From: address is in the default SPF\n white-list\n -0.0 SPF_PASS SPF: sender matches SPF record\n -0.5 ENV_AND_HDR_SPF_MATCH Env and Hdr From used in default SPF WL\n Match\n 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay\n lines", "X-BeenThere": "linux-um@lists.infradead.org", "X-Mailman-Version": "2.1.34", "Precedence": "list", "List-Id": "<linux-um.lists.infradead.org>", "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/linux-um>,\n <mailto:linux-um-request@lists.infradead.org?subject=unsubscribe>", "List-Archive": "<http://lists.infradead.org/pipermail/linux-um/>", "List-Post": "<mailto:linux-um@lists.infradead.org>", "List-Help": "<mailto:linux-um-request@lists.infradead.org?subject=help>", "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/linux-um>,\n <mailto:linux-um-request@lists.infradead.org?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "\"linux-um\" <linux-um-bounces@lists.infradead.org>", "Errors-To": "linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org" }, "content": "Fix the following coccicheck warning:\n./arch/um/drivers/hostaudio_kern.c:125:10-14: Unneeded variable: \"mask\".\nReturn \"0\" on line 131\n\nReported-by: Abaci Robot <abaci@linux.alibaba.com>\nSigned-off-by: Yang Li <yang.lee@linux.alibaba.com>\n---\n arch/um/drivers/hostaudio_kern.c | 4 +---\n 1 file changed, 1 insertion(+), 3 deletions(-)", "diff": "diff --git a/arch/um/drivers/hostaudio_kern.c b/arch/um/drivers/hostaudio_kern.c\nindex d35d3f3..5b064d3 100644\n--- a/arch/um/drivers/hostaudio_kern.c\n+++ b/arch/um/drivers/hostaudio_kern.c\n@@ -122,13 +122,11 @@ static ssize_t hostaudio_write(struct file *file, const char __user *buffer,\n static __poll_t hostaudio_poll(struct file *file,\n \t\t\t\tstruct poll_table_struct *wait)\n {\n-\t__poll_t mask = 0;\n-\n #ifdef DEBUG\n \tprintk(KERN_DEBUG \"hostaudio: poll called (unimplemented)\\n\");\n #endif\n \n-\treturn mask;\n+\treturn 0;\n }\n \n static long hostaudio_ioctl(struct file *file,\n", "prefixes": [] }