Re: [PATCH v2] ALSA: hda: fix unused variable warning

From: Takashi Iwai
Date: Tue Sep 11 2018 - 10:47:10 EST


On Tue, 11 Sep 2018 16:18:36 +0200,
Anders Roxell wrote:
>
> When CONFIG_X86=n function azx_snoop doesn't use the variable chip it
> only returns true.
>
> sound/pci/hda/hda_intel.c: In function âdma_alloc_pagesâ:
> sound/pci/hda/hda_intel.c:2002:14: warning: unused variable âchipâ [-Wunused-variable]
> struct azx *chip = bus_to_azx(bus);
> ^~~~
>
> Create a inline function of azx_snoop.
>
> Fixes: a41d122449be ("ALSA: hda - Embed bus into controller object")
> Signed-off-by: Anders Roxell <anders.roxell@xxxxxxxxxx>

Applied, thanks.


Takashi