Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp88479pxf; Wed, 10 Mar 2021 00:53:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJypho+6YNiS6ccJACJCMPOuzBY2NYKxXlt5J79RJ04MkVP321QIDc4yHcjyfbbm4sDGNTjR X-Received: by 2002:a17:906:4117:: with SMTP id j23mr2611503ejk.10.1615366429335; Wed, 10 Mar 2021 00:53:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615366429; cv=none; d=google.com; s=arc-20160816; b=vhQWJFVh03PPlTbZfuA+bXoxBLRoZYZdpEklefq1DoYu44MNhL0zCCjlHeuB6HkgdF npqgZW2Di/pdFkx8MnHdS3tfUxWGyAeEjPKlJOFD1yjRgPLWn6SWUR/PbSxkwR2QHC7N mBHU2f4oBl5uCyaDeaFSK7NNc5zVZ78+iMy7xgbhNwVOuKr5rFHxSIl1QLDqkUy0sBNM jf+u2xmTxbCv1c0aFf1c0IOwbjcrVdu1zqi/C90bUn04rkD9+1QjrWYOPTmerToAUfi1 zu2KkHfWsI5eUfnT6h7uzMC6AxCO1Vbk9srAZTbLcpgC73Q6I5A5KePkUSs7a/0I35v3 42iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qsnaIVDDb07qh+ICnLVj2i/QOsJKDdLGzuoE5JB09ug=; b=nPh+TQmU3+agtAEQixjpHGq/glv7GRepNgmwk7dzM+PhvgHFbc4LgtvDqwmL8zRU09 9wkrB+u3vGEvAvQ0YbGo3hNHUYRNsgXxf2xW9pWknlTulLIKO2y/Jy9WsjQWITCNSmSZ MFa5SkopFgEI/ToMx9ok7DEmqRjqMeoV8KvREwyg/Z80NSImW/aMSukBvbaee9/h9K6N NFnTTH6O9FCZP9ZY7zPqhEecuGf7jCFZaMPeaenia6H9OvI6CB4E7a+RIs4QaPH6iffg jqp6lzliBI87vIlN3uSWBtnZqLG3SbVyh2m45Pdv1qQ/TUMvq5Kudyw0qhsTMt3BXP5L MjjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="V8n/vzKH"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z15si5082621ejr.694.2021.03.10.00.53.26; Wed, 10 Mar 2021 00:53:49 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="V8n/vzKH"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231278AbhCJIwb (ORCPT + 99 others); Wed, 10 Mar 2021 03:52:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:57286 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232467AbhCJIwG (ORCPT ); Wed, 10 Mar 2021 03:52:06 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4873D64FEE; Wed, 10 Mar 2021 08:52:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615366325; bh=ijxRDmvFdE54TR+aDgU5N1hfbWna1xc6Q27akx3/hM8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=V8n/vzKH3R44LtbnDPf4SgMvZiOaXnicZHLbuoOaZ+XFFKIH1yTDUrj5iikx+y692 rNvDSDQVFhEb/rwUZFAt1RN5kknz+fUVVMWOQt5l6L+WiG2jnLGJHCl66JnqBPjwn1 DT0mpYekRczHJ13a+Ivts1EnziAiysFCymMa4yX8= Date: Wed, 10 Mar 2021 09:52:02 +0100 From: Greg KH To: Yang Li Cc: arnd@arndb.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH] char/mwave: turn tp3780I_InitializeBoardData() into void function Message-ID: References: <1615365963-2096-1-git-send-email-yang.lee@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1615365963-2096-1-git-send-email-yang.lee@linux.alibaba.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 10, 2021 at 04:46:03PM +0800, Yang Li wrote: > This function always return '0' and no callers use the return value. > So make it a void function. > > This eliminates the following coccicheck warning: > ./drivers/char/mwave/tp3780i.c:182:5-11: Unneeded variable: "retval". > Return "0" on line 187 > > Reported-by: Abaci Robot > Signed-off-by: Yang Li > --- > drivers/char/mwave/tp3780i.c | 6 +----- > drivers/char/mwave/tp3780i.h | 2 +- > 2 files changed, 2 insertions(+), 6 deletions(-) > > diff --git a/drivers/char/mwave/tp3780i.c b/drivers/char/mwave/tp3780i.c > index 5e1618a..8588b51 100644 > --- a/drivers/char/mwave/tp3780i.c > +++ b/drivers/char/mwave/tp3780i.c > @@ -177,14 +177,10 @@ int tp3780I_InitializeBoardData(THINKPAD_BD_DATA * pBDData) > return retval; > } > > -int tp3780I_Cleanup(THINKPAD_BD_DATA * pBDData) > +void tp3780I_Cleanup(THINKPAD_BD_DATA *pBDData) Your subject line does not match what the patch does :(