mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 18:53:52 +08:00
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>
This commit is contained in:
parent
fe37285059
commit
74729a8f06
@ -623,7 +623,7 @@ static int snd_emu10k1_ecard_init(struct snd_emu10k1 *emu)
|
||||
static int snd_emu10k1_cardbus_init(struct snd_emu10k1 *emu)
|
||||
{
|
||||
unsigned long special_port;
|
||||
unsigned int value;
|
||||
__always_unused unsigned int value;
|
||||
|
||||
/* Special initialisation routine
|
||||
* before the rest of the IO-Ports become active.
|
||||
@ -653,7 +653,7 @@ static int snd_emu1010_load_firmware_entry(struct snd_emu10k1 *emu,
|
||||
int n, i;
|
||||
int reg;
|
||||
int value;
|
||||
unsigned int write_post;
|
||||
__always_unused unsigned int write_post;
|
||||
unsigned long flags;
|
||||
|
||||
if (!fw_entry)
|
||||
|
Loading…
Reference in New Issue
Block a user