Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: es18xx: Remove the unneeded result variable

Return the value inb() directly instead of storing it in another redundant
variable.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Link: https://lore.kernel.org/r/20220920064605.215318-1-ye.xingchen@zte.com.cn
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

ye xingchen and committed by
Takashi Iwai
96ecdc71 c6fe6be6

+1 -4
+1 -4
sound/isa/es18xx.c
··· 1344 1344 1345 1345 static int snd_es18xx_config_read(struct snd_es18xx *chip, unsigned char reg) 1346 1346 { 1347 - int data; 1348 - 1349 1347 outb(reg, chip->ctrl_port); 1350 - data = inb(chip->ctrl_port + 1); 1351 - return data; 1348 + return inb(chip->ctrl_port + 1); 1352 1349 } 1353 1350 1354 1351 static void snd_es18xx_config_write(struct snd_es18xx *chip,