From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752853AbaJ0MNU (ORCPT ); Mon, 27 Oct 2014 08:13:20 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:22122 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751523AbaJ0MNQ (ORCPT ); Mon, 27 Oct 2014 08:13:16 -0400 Date: Mon, 27 Oct 2014 15:12:57 +0300 From: Dan Carpenter To: Sudip Mukherjee Cc: devel@driverdev.osuosl.org, Florian Schilhabel , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Larry Finger Subject: Re: [PATCH] staging: rtl8712: remove unused variables Message-ID: <20141027121256.GF6879@mwanda> References: <1414326813-21444-1-git-send-email-sudipm.mukherjee@gmail.com> <20141027111312.GA6879@mwanda> <20141027115221.GA5369@sudip-PC> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141027115221.GA5369@sudip-PC> User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: ucsinet22.oracle.com [156.151.31.94] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 27, 2014 at 05:22:21PM +0530, Sudip Mukherjee wrote: > On Mon, Oct 27, 2014 at 02:13:12PM +0300, Dan Carpenter wrote: > > On Sun, Oct 26, 2014 at 06:03:33PM +0530, Sudip Mukherjee wrote: > > > @@ -262,7 +257,7 @@ static u8 rtl8712_dl_fw(struct _adapter *padapter) > > > if (tmp8_a != (tmp8|BIT(2))) > > > goto exit_fail; > > > > > > - tmp32 = r8712_read32(padapter, TCR); > > > + r8712_read32(padapter, TCR); > > > > I wonder if we actually need to call r8712_read32() here? It's not > > clear. The changelog should say one way or the other. Maybe something > > like "I left a call to r8712_read32(padapter, TCR) because I didn't know > > if it had side effects". When you note down questions you have in the > > changelog that helps reviewers. > sure. i will resend it with modified commit log. > r8712_read32() is ultimately calling usb_read32() which is again calling r8712_usbctrl_vendorreq(). > this r8712_usbctrl_vendorreq() is communicating through the usb bus and is sending and receiving the control msg. > that is why i didnot remove it. Yeah. I'm 95% sure it's not needed, but I suppose it's better to err on the side of caution. regards, dan carpenter