diff mbox series

sound/arm: Remove unnecessary variables

Message ID 20210610024053.1217-1-zuoqilin1@163.com (mailing list archive)
State New, archived
Headers show
Series sound/arm: Remove unnecessary variables | expand

Commit Message

zuoqilin1@163.com June 10, 2021, 2:40 a.m. UTC
From: zuoqilin <zuoqilin@yulong.com>

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

Signed-off-by: zuoqilin <zuoqilin@yulong.com>
---
 sound/arm/pxa2xx-ac97.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Comments

Takashi Iwai June 10, 2021, 7:51 a.m. UTC | #1
On Thu, 10 Jun 2021 04:40:53 +0200,
zuoqilin1@163.com wrote:
> 
> From: zuoqilin <zuoqilin@yulong.com>
> 
> There is no need to define the variable "ret" to receive.
> 
> Signed-off-by: zuoqilin <zuoqilin@yulong.com>

Thanks, applied.


Takashi
diff mbox series

Patch

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 = {