ASoC: pci/emu10k1: remove "set but not used' warnings
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 2 Jul 2020 19:35:52 +0000 (14:35 -0500)
committerTakashi Iwai <tiwai@suse.de>
Tue, 7 Jul 2020 10:08:45 +0000 (12:08 +0200)
commit74729a8f06b67661f7a5f217cabfcce451ed594f
tree4f011778d8e14a4e732ebc7b6bede6b8808f1872
parentfe37285059fd0d53c051727ca052c2c37935370e
ASoC: pci/emu10k1: remove "set but not used' warnings

Fix W=1 warnings. Mark variables used for reads as __always_unused.

sound/pci/emu10k1/emu10k1_main.c: In function
‘snd_emu10k1_cardbus_init’:
sound/pci/emu10k1/emu10k1_main.c:626:15: warning: variable ‘value’ set
but not used [-Wunused-but-set-variable]
  626 |  unsigned int value;
      |               ^~~~~
sound/pci/emu10k1/emu10k1_main.c: In function
‘snd_emu1010_load_firmware_entry’:
sound/pci/emu10k1/emu10k1_main.c:656:15: warning: variable
‘write_post’ set but not used [-Wunused-but-set-variable]
  656 |  unsigned int write_post;
      |               ^~~~~~~~~~

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200702193604.169059-12-pierre-louis.bossart@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/emu10k1/emu10k1_main.c