ret is always zero here in this code path. So remove this assignment.

Signed-off-by: Jing Xiangfeng <[email protected]>
---
 sound/arm/pxa2xx-ac97.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sound/arm/pxa2xx-ac97.c b/sound/arm/pxa2xx-ac97.c
index ea8e233150c8..813e608dca82 100644
--- a/sound/arm/pxa2xx-ac97.c
+++ b/sound/arm/pxa2xx-ac97.c
@@ -210,7 +210,6 @@ static int pxa2xx_ac97_pcm_new(struct snd_card *card)
                goto out;
 
        pxa2xx_ac97_pcm = pcm;
-       ret = 0;
 
  out:
        return ret;
-- 
2.17.1

Reply via email to