Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756600AbYKCQp0 (ORCPT ); Mon, 3 Nov 2008 11:45:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755309AbYKCQpJ (ORCPT ); Mon, 3 Nov 2008 11:45:09 -0500 Received: from mba.ocn.ne.jp ([122.1.235.107]:52274 "EHLO smtp.mba.ocn.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754876AbYKCQpI (ORCPT ); Mon, 3 Nov 2008 11:45:08 -0500 Date: Tue, 04 Nov 2008 01:45:11 +0900 (JST) Message-Id: <20081104.014511.108120668.anemo@mba.ocn.ne.jp> To: vapier@gentoo.org Cc: nico@cam.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] SMC91x: delete unused local variable "lp" From: Atsushi Nemoto In-Reply-To: <1225288566-18457-1-git-send-email-vapier@gentoo.org> References: <1225288566-18457-1-git-send-email-vapier@gentoo.org> X-Fingerprint: 6ACA 1623 39BD 9A94 9B1A B746 CA77 FE94 2874 D52F X-Pgp-Public-Key: http://wwwkeys.pgp.net/pks/lookup?op=get&search=0x2874D52F X-Mailer: Mew version 5.2 on Emacs 21.4 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1119 Lines: 32 On Wed, 29 Oct 2008 09:56:06 -0400, Mike Frysinger wrote: > Signed-off-by: Mike Frysinger > --- > drivers/net/smc91x.c | 2 -- > 1 files changed, 0 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/smc91x.c b/drivers/net/smc91x.c > index c70870e..6f9895d 100644 > --- a/drivers/net/smc91x.c > +++ b/drivers/net/smc91x.c > @@ -2060,7 +2060,6 @@ static int smc_request_attrib(struct platform_device *pdev, > struct net_device *ndev) > { > struct resource * res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-attrib"); > - struct smc_local *lp = netdev_priv(ndev); > > if (!res) > return 0; The local variable 'lp' is actually used on some platforms (via SMC_IO_SHIFT). Please revert this change and do another way ("unused" marker or something) to fix the warnings. --- Atsushi Nemoto -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/