CC: [email protected]
TO: "Lubomir, Rintel," <[email protected]>
CC: Liam Girdwood <[email protected]>
CC: Mark Brown <[email protected]>
CC: Jaroslav Kysela <[email protected]>
CC: Takashi Iwai <[email protected]>
CC: [email protected]
CC: [email protected]

From: kbuild test robot <[email protected]>

sound/soc/codecs/88ce156-codec.c:1341:5-8: Unneeded variable: "ret". Return "0" 
on line 1390


 Remove unneeded variable used to store return value.

Generated by: scripts/coccinelle/misc/returnvar.cocci

Fixes: 27998497039d ("XXX 88CE156")
Signed-off-by: kbuild test robot <[email protected]>
---

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/lkundrak/linux-mmp.git 
lr/ariel
head:   744209eb6a53c65c03de1214febd58adbad72853
commit: 27998497039d2518d34ba88ddd721c2290a2e162 [61/67] XXX 88CE156
:::::: branch date: 9 hours ago
:::::: commit date: 9 hours ago

Please take the patch only if it's a positive warning. Thanks!

 88ce156-codec.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

--- a/sound/soc/codecs/88ce156-codec.c
+++ b/sound/soc/codecs/88ce156-codec.c
@@ -1338,8 +1338,6 @@ struct snd_soc_dai_driver ce156_dai = {
 
 static int ce156_dev_init(struct snd_soc_codec *codec)
 {
-       int ret = 0;
-
        ce156_reset(codec);
        mdelay(10);
 
@@ -1387,7 +1385,7 @@ static int ce156_dev_init(struct snd_soc
 
        printk(KERN_INFO "ce156: initial ok\n");
        
-       return ret;
+       return 0;
 
 }
 
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to