Files
linux/sound/pci
Anders Roxell c4629743ed ALSA: hda: fix unused variable warning
[ Upstream commit 5b03006d5c ]

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: a41d122449 ("ALSA: hda - Embed bus into controller object")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:49:54 +01:00
..
2018-07-27 09:06:05 +02:00
2018-07-27 09:06:12 +02:00
2018-07-27 09:06:11 +02:00
2018-06-15 18:10:01 -03:00
2017-08-12 23:31:58 +02:00
2017-08-12 23:31:58 +02:00