summaryrefslogtreecommitdiff
path: root/sound/isa
diff options
context:
space:
mode:
authorye xingchen <ye.xingchen@zte.com.cn>2022-09-20 06:46:05 +0000
committerTakashi Iwai <tiwai@suse.de>2022-09-20 13:33:55 +0200
commit96ecdc718649fe01940e7f5dc4fc15dacd18cada (patch)
tree6e6c01c054c42d4ef76b598c7aa377921bc68447 /sound/isa
parentc6fe6be65aeaa03c7cdfc807b47c1e59b9c9ea71 (diff)
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>
Diffstat (limited to 'sound/isa')
-rw-r--r--sound/isa/es18xx.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/isa/es18xx.c b/sound/isa/es18xx.c
index 3fcd168480b6..0a32845b1017 100644
--- a/sound/isa/es18xx.c
+++ b/sound/isa/es18xx.c
@@ -1344,11 +1344,8 @@ ES18XX_SINGLE("GPO1 Switch", 0, ES18XX_PM, 1, 1, ES18XX_FL_PMPORT),
static int snd_es18xx_config_read(struct snd_es18xx *chip, unsigned char reg)
{
- int data;
-
outb(reg, chip->ctrl_port);
- data = inb(chip->ctrl_port + 1);
- return data;
+ return inb(chip->ctrl_port + 1);
}
static void snd_es18xx_config_write(struct snd_es18xx *chip,