Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp88010pxf; Wed, 10 Mar 2021 00:52:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJyC/WXiBMv2Mcp1MDuYbvwwmes//B2m3L3slnezRScOLfz05ps8k1/CMWc1ZePZ2lWBXXo6 X-Received: by 2002:a17:907:7637:: with SMTP id jy23mr2443944ejc.12.1615366364044; Wed, 10 Mar 2021 00:52:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615366364; cv=none; d=google.com; s=arc-20160816; b=wKywUE7Fk6ovV/SImT/B1KQ1eagaY7ur/I3sK7gQIEecLKNsehH99nmIXTLryxCtXf e78RAOFRz+VaN2etzmd17jE2K7i8P8VhsOFhSVQ8pa1yCmIO1bOQeUxgqwT0uJZGtOhP D+T3KDDRbfHlf731xDlTfP2UbmR7yEiVDdDGEq/0z7DGPt+CcZLmA4ltoUrwwnmD+/Ko 4cEJYQhFE+9xIu5CmbBM55fMFqYx0nSFC2pOwoVnebGxLSr80fkI1Ckn4zppzAe+0fyy ntwrsXq//mQYcFwEnScHLOwnUFqTpLZemwrE4wmaDaR1QFQCF3fRKscITCDxH2TOXjls KgPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=ao3IfEgUISII7gM/FBS+2h90EbbiOvkyiH6sYJua1rw=; b=GR+TcqaUme81n8ZA9BEE6CLE+CQSUgNKI6iWqIvECDIAEJmMEuV9hvLRZY0m2rUU70 nW1eawfeb1JxIHtBfTDoLe3R2iooXIxxDmjneo6S2ojKw6y5IB0wOHiOBnUazvhzEpfq +eR8DSoUnUe/gnYQ7wmKDUj0B9uJG6pNk2EZpTrtlNh7BsBLHvhE4lRZpGnY530eTkTw rMU0Bt3wqA5N2xcBhQYvCNFCAeI13tWSH2i+NHlRXXcTTdjmZrPikTC8G8iM8mgFq55U wLvspTrxi4xHURGCcE+qNX5OXKxyqZjm9Otmur0f5gsBdztXeQnOXWKOA/DjUXQHL4eO aZZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e16si10240320edq.338.2021.03.10.00.52.19; Wed, 10 Mar 2021 00:52:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229828AbhCJItT (ORCPT + 99 others); Wed, 10 Mar 2021 03:49:19 -0500 Received: from out30-130.freemail.mail.aliyun.com ([115.124.30.130]:35380 "EHLO out30-130.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbhCJItN (ORCPT ); Wed, 10 Mar 2021 03:49:13 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R361e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0UREgr3u_1615366150; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0UREgr3u_1615366150) by smtp.aliyun-inc.com(127.0.0.1); Wed, 10 Mar 2021 16:49:10 +0800 From: Yang Li To: jdike@addtoit.com Cc: richard@nod.at, anton.ivanov@cambridgegreys.com, linux-um@lists.infradead.org, linux-kernel@vger.kernel.org, Yang Li 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: ./arch/um/drivers/hostaudio_kern.c:125:10-14: Unneeded variable: "mask". Return "0" on line 131 Reported-by: Abaci Robot Signed-off-by: Yang Li --- arch/um/drivers/hostaudio_kern.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/um/drivers/hostaudio_kern.c b/arch/um/drivers/hostaudio_kern.c index d35d3f3..5b064d3 100644 --- a/arch/um/drivers/hostaudio_kern.c +++ b/arch/um/drivers/hostaudio_kern.c @@ -122,13 +122,11 @@ static ssize_t hostaudio_write(struct file *file, const char __user *buffer, static __poll_t hostaudio_poll(struct file *file, struct poll_table_struct *wait) { - __poll_t mask = 0; - #ifdef DEBUG printk(KERN_DEBUG "hostaudio: poll called (unimplemented)\n"); #endif - return mask; + return 0; } static long hostaudio_ioctl(struct file *file, -- 1.8.3.1