[alsa-devel] [PATCH v2] ALSA: hda: fix unused variable warning
Takashi Iwai
tiwai at suse.de
Tue Sep 11 16:47:05 CEST 2018
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 at linaro.org>
Applied, thanks.
Takashi
More information about the Alsa-devel
mailing list