mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 03:30:52 +07:00
ALSA: pci/es1938: remove 'set but not used' warning
Fix W=1 warning. Mark the 'audiostatus' variable as __always_unused. sound/pci/es1938.c: In function ‘snd_es1938_interrupt’: sound/pci/es1938.c:1622:24: warning: variable ‘audiostatus’ set but not used [-Wunused-but-set-variable] 1622 | unsigned char status, audiostatus; | ^~~~~~~~~~~ Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20200702193604.169059-19-pierre-louis.bossart@linux.intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
04b3c79533
commit
8068a5814f
@ -1619,7 +1619,8 @@ static int snd_es1938_create(struct snd_card *card,
|
|||||||
static irqreturn_t snd_es1938_interrupt(int irq, void *dev_id)
|
static irqreturn_t snd_es1938_interrupt(int irq, void *dev_id)
|
||||||
{
|
{
|
||||||
struct es1938 *chip = dev_id;
|
struct es1938 *chip = dev_id;
|
||||||
unsigned char status, audiostatus;
|
unsigned char status;
|
||||||
|
__always_unused unsigned char audiostatus;
|
||||||
int handled = 0;
|
int handled = 0;
|
||||||
|
|
||||||
status = inb(SLIO_REG(chip, IRQCONTROL));
|
status = inb(SLIO_REG(chip, IRQCONTROL));
|
||||||
|
Loading…
Reference in New Issue
Block a user