From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Buesch Subject: Re: [PATCH] remove dead code from bcm43xx-softmac Date: Mon, 4 Sep 2006 08:51:01 +0200 Message-ID: <200609040851.01338.mb@bu3sch.de> References: <44FBADE0.3010905@lwfinger.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Stefano Brivio , John Linville , Bcm43xx-dev-0fE9KPoRgkgATYTw5x5z8w@public.gmane.org Return-path: To: Larry Finger In-Reply-To: <44FBADE0.3010905-tQ5ms3gMjBLk1uMJSBkQmQ@public.gmane.org> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: bcm43xx-dev-bounces-0fE9KPoRgkgATYTw5x5z8w@public.gmane.org Errors-To: bcm43xx-dev-bounces-0fE9KPoRgkgATYTw5x5z8w@public.gmane.org List-Id: netdev.vger.kernel.org On Monday 04 September 2006 06:38, Larry Finger wrote: > John, > > Please queue the following patch for wireless-2.6. It removes some code that was made obsolete by > the wireless statistics changes of several weeks ago, but was not noticed them. > > Thanks, > > Larry > > ================= > > This patch removes code that was make obsolete when the wireless statistics in bcm43xx-softmac were > changed, but was overlooked at that time. The value of bcm->stats.link_quality computed here is > never used. So you can also remove the actual variable, no? > Signed-off-by: Larry Finger > > Index: wireless-2.6/drivers/net/wireless/bcm43xx/bcm43xx_main.c > =================================================================== > --- wireless-2.6.orig/drivers/net/wireless/bcm43xx/bcm43xx_main.c > +++ wireless-2.6/drivers/net/wireless/bcm43xx/bcm43xx_main.c > @@ -1549,17 +1549,7 @@ static void handle_irq_noise(struct bcm4 > else > average -= 48; > > -/* FIXME: This is wrong, but people want fancy stats. well... */ > -bcm->stats.noise = average; > - if (average > -65) > - bcm->stats.link_quality = 0; > - else if (average > -75) > - bcm->stats.link_quality = 1; > - else if (average > -85) > - bcm->stats.link_quality = 2; > - else > - bcm->stats.link_quality = 3; > -// dprintk(KERN_INFO PFX "Link Quality: %u (avg was %d)\n", bcm->stats.link_quality, average); > + bcm->stats.noise = average; > drop_calculation: > bcm->noisecalc.calculation_running = 0; > return; > -- Greetings Michael.