Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6229109ybe; Tue, 17 Sep 2019 23:23:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzvZ2FC50MWnYVSz1lMmUQU3JxGDItGQG2ZoNEZAy6n4iJGSbx7lMuM5XeaYg23CDhgdCb4 X-Received: by 2002:a50:d5c5:: with SMTP id g5mr8638507edj.57.1568787822064; Tue, 17 Sep 2019 23:23:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568787822; cv=none; d=google.com; s=arc-20160816; b=nCXjWfa5Im6HpnGSk3BsOTg+JCdYXDQJxTICevioHl6sQpA57jY1B1KT4+QKKABezU LLMFq1r70/yCVxXlUcBa8gzjLDGASZ+3dil76hI/lp0LwizVp+UIVSzwKqv61i/Eu4j6 flY2SHMD9n3bIP8857PIx8SB6YC+eSMBO11eoBy8csFArbaLCSCii+g4PlRDfR5ZJ2gY 3tEx2fUSaEA5PWzv+1QGQE6psME5h71CuyOe9/GsD7OYXX3VMsHFFs7g+h7qpNKPoRC9 ZLPexZnEZd05XJBq05k/3eWW/lGTPEXWLa4dTdSuAB49e1dU7wnNwYDZrXpHHYCECJ5f 7Pqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/VLD4T4j6CkFnw+yLOSt4lxWLxJlglbtXkL6PJrDavs=; b=ievdykoyLdpAeDjBtYAlBKprJcIiR4D2qosj5EdhrTzoNRqNcF7KdogrHK/8m8YUMI vALXqDyIuebGZEsFOY0tXXU/3qpT5CUKVIJhH/cSPcVbCSqPruSVOIvTTyu8ggmj98XH AmfiidZ4CNc9c76+D9N30ysQ6teYbJg7/aKkEd9KCju114KBBbdGNzDtnAHWrmTpuE+S wzZa06HnW1fIsc6zlmPBwEgI76XAjXAJGudzzeWXLSeD2Q+bm7dNldPo9xOcRK5lnmNc 7aZGv6TXgOAv9ucp2aF8opXM3ke4eQYYQt/GAixT9To56IikplaHqKim+/zNLYP0WtOJ BZpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DH4Z8wwF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q1si2911053edj.354.2019.09.17.23.23.19; Tue, 17 Sep 2019 23:23:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DH4Z8wwF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726921AbfIRGO5 (ORCPT + 99 others); Wed, 18 Sep 2019 02:14:57 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:40530 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726081AbfIRGO4 (ORCPT ); Wed, 18 Sep 2019 02:14:56 -0400 Received: by mail-pf1-f193.google.com with SMTP id x127so3652443pfb.7 for ; Tue, 17 Sep 2019 23:14:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=/VLD4T4j6CkFnw+yLOSt4lxWLxJlglbtXkL6PJrDavs=; b=DH4Z8wwFPfwMMvrzBvq7aENKUnQTudeD8psgUXMgs8wQbs/3KHt2oQ30ar5PknDbkK 1Ejs0D3Q5wT+WPpbySeeiCUzvmrlt8k7QMHVu9wxfmw79u6nQBKmsZj9m6bmYYe/9wvi BAmQ5sr5esPjfMTGdzbJ+WPOkv6mqJQJfyd1o9D0o+YxgnIEJJKMSmu/T+d0iBdPck+D tl4x3u450xj1o0fwmTqEPgq10UFjPQD4IqY43epcbGGAW0fMHANWD7WKOk97uOAFHxyQ vBDxi5bZX5pbCZN3ViBmuMYQikDsFXT3gNqsM8IfZPsCWFrcF8tKcNRo5eqiwF2zvlKy He0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=/VLD4T4j6CkFnw+yLOSt4lxWLxJlglbtXkL6PJrDavs=; b=czmtiOGoMAorGYMEEChuQGTT+D4zkyvXosznlxzOIgUXnnXvjmEpBw9Dk6cNcJtE1W DoBdqkplEnqJaDU+AvV9mctHHE1HMPdIGZUVtUIifmHXq+jwXsuVodTZc8A7CJttlTkL xvATLnhBd6Sy+/WnoFmyYM3eM2gRrpqr+1Xw3z621E2k8fUKM0XdtertZtzapLUIfKrd ra580QJ0TF8JAX68u3mOHrk8gLnCjYJq1JE3qgYynLEf9oQxcyPQI8zgMtuKkQI+Xkmt SSiqwvicQbCMJirruU9IWWdSjwL8xvxxYaiHzmjZUdBxfR1aQlwRmHuf/orvby2hxZhr m+3Q== X-Gm-Message-State: APjAAAXJ331YYnkq+0Y8EZCTGUA1fljSXmcAKblvxC+LxiE0WOGqe5D5 KiXrSidWyxln5V7A/n5yDnuJLzEY8cY= X-Received: by 2002:a63:2a87:: with SMTP id q129mr2485393pgq.101.1568787295612; Tue, 17 Sep 2019 23:14:55 -0700 (PDT) Received: from aliasgar ([219.65.62.52]) by smtp.gmail.com with ESMTPSA id f14sm7424905pfq.187.2019.09.17.23.14.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Sep 2019 23:14:54 -0700 (PDT) Date: Wed, 18 Sep 2019 11:44:50 +0530 From: ABC XYZ To: Dan Carpenter Cc: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drivers:staging:rtl8723bs: Removed unneeded variables Message-ID: <20190918061450.GB8416@aliasgar> References: <1568730691-954-1-git-send-email-aliasgar.surti500@gmail.com> <20190917144432.GB2959@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190917144432.GB2959@kadam> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 17, 2019 at 05:44:32PM +0300, Dan Carpenter wrote: > On Tue, Sep 17, 2019 at 08:01:31PM +0530, Aliasgar Surti wrote: > > From: Aliasgar Surti > > > > coccicheck reported warning for unneeded variable used. > > > > This patch removes the unneeded variables. > > > > Signed-off-by: Aliasgar Surti > > --- > > drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 15 +++++---------- > > 1 file changed, 5 insertions(+), 10 deletions(-) > > > > diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c > > index d1b199e..fa3ffc3 100644 > > --- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c > > +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c > > @@ -2428,8 +2428,7 @@ static int rtw_drvext_hdl(struct net_device *dev, struct iw_request_info *info, > > static int rtw_mp_ioctl_hdl(struct net_device *dev, struct iw_request_info *info, > > union iwreq_data *wrqu, char *extra) > > { > > - int ret = 0; > > - return ret; > > + return 0; > > } > > Just get rid of the whole function. Replace the pointer in the function > array with a NULL. Okay, I will get rid of unneeded functions and replace them with NULL in function array. Thanks, Aliasgar > > regards, > dan carpenter >