From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH] ALSA: sound/atmel/ac97c.c: remove unused variable Date: Wed, 20 May 2015 06:21:50 +0200 Message-ID: References: <14010746.Ukv1maRMaG@wuerfel> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id C888C260688 for ; Wed, 20 May 2015 06:21:51 +0200 (CEST) In-Reply-To: <14010746.Ukv1maRMaG@wuerfel> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Arnd Bergmann Cc: Alexander Stein , Nicolas Ferre , alsa-devel@alsa-project.org, broonie@kernel.org, Alexandre Belloni List-Id: alsa-devel@alsa-project.org At Tue, 19 May 2015 17:20:36 +0200, Arnd Bergmann wrote: > > The recently added DT support for the ac97 driver is causing > a gcc warning: > > sound/atmel/ac97c.c: In function 'atmel_ac97c_probe_dt': > sound/atmel/ac97c.c:919:29: warning: unused variable 'match' [-Wunused-variable] > const struct of_device_id *match; > > The variable is clearly unused, so we can remove it. > > Signed-off-by: Arnd Bergmann Applied, thanks. Takashi > > diff --git a/sound/atmel/ac97c.c b/sound/atmel/ac97c.c > index cf4cedf2b420..6dad042630d8 100644 > --- a/sound/atmel/ac97c.c > +++ b/sound/atmel/ac97c.c > @@ -916,7 +916,6 @@ static struct ac97c_platform_data *atmel_ac97c_probe_dt(struct device *dev) > { > struct ac97c_platform_data *pdata; > struct device_node *node = dev->of_node; > - const struct of_device_id *match; > > if (!node) { > dev_err(dev, "Device does not have associated DT data\n"); >