projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5b5199
)
ALSA: arm: Remove unnecessary variables
author
zuoqilin
<zuoqilin@yulong.com>
Thu, 10 Jun 2021 02:40:53 +0000
(10:40 +0800)
committer
Takashi Iwai
<tiwai@suse.de>
Thu, 10 Jun 2021 07:51:21 +0000
(09:51 +0200)
There is no need to define the variable "ret" to receive.
Signed-off-by: zuoqilin <zuoqilin@yulong.com>
Link:
https://lore.kernel.org/r/20210610024053.1217-1-zuoqilin1@163.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/arm/pxa2xx-ac97.c
patch
|
blob
|
history
diff --git
a/sound/arm/pxa2xx-ac97.c
b/sound/arm/pxa2xx-ac97.c
index 6322e639259476bf672ecaf51ae821aa51c200d1..a67e6685b00cfd993b4ab1135f215f3ecdaf9a3f 100644
(file)
--- a/
sound/arm/pxa2xx-ac97.c
+++ b/
sound/arm/pxa2xx-ac97.c
@@
-47,9
+47,7
@@
static unsigned short pxa2xx_ac97_legacy_read(struct snd_ac97 *ac97,
static void pxa2xx_ac97_legacy_write(struct snd_ac97 *ac97,
unsigned short reg, unsigned short val)
{
- int __always_unused ret;
-
- ret = pxa2xx_ac97_write(ac97->num, reg, val);
+ pxa2xx_ac97_write(ac97->num, reg, val);
}
static const struct snd_ac97_bus_ops pxa2xx_ac97_ops = {