diff options
author | Anders Roxell <anders.roxell@linaro.org> | 2018-09-11 17:18:36 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-27 16:49:54 +0300 |
commit | c4629743ed2ba592741825622b62dd1ca867ee0f (patch) | |
tree | 13683316a588d58b368d4f76ee313ed63c862b91 /init/version.c | |
parent | 451830a94b006df5c194768a84fb0a8716d9b2bd (diff) | |
download | linux-c4629743ed2ba592741825622b62dd1ca867ee0f.tar.xz |
ALSA: hda: fix unused variable warning
[ Upstream commit 5b03006d5c58ddd31caf542eef4d0269bcf265b3 ]
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@linaro.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'init/version.c')
0 files changed, 0 insertions, 0 deletions