[PATCH] sound/arm: Remove unnecessary variables

Subsystems: pxa2xx/pxa3xx support, sound, the rest

STALE1882d LANDED

Landed in mainline as f4a85e00b2a8 on 2021-06-10.

2 messages, 2 authors, 2021-06-10 · open the first message on its own page

[PATCH] sound/arm: Remove unnecessary variables

From: <hidden>
Date: 2021-06-10 02:43:26

From: zuoqilin <redacted>

There is no need to define the variable "ret" to receive.

Signed-off-by: zuoqilin <redacted>
---
 sound/arm/pxa2xx-ac97.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sound/arm/pxa2xx-ac97.c b/sound/arm/pxa2xx-ac97.c
index 6322e639..a67e668 100644
--- 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 = {
-- 
1.9.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Re: [PATCH] sound/arm: Remove unnecessary variables

From: Takashi Iwai <hidden>
Date: 2021-06-10 07:51:45

On Thu, 10 Jun 2021 04:40:53 +0200,
zuoqilin1@163.com wrote:
From: zuoqilin <redacted>

There is no need to define the variable "ret" to receive.

Signed-off-by: zuoqilin <redacted>
Thanks, applied.


Takashi

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help