All of lore.kernel.org
 help / color / mirror / Atom feed
* [lkundrak-linux-mmp:lr/ariel 61/67] sound/soc/codecs/88ce156-codec.c:1341:5-8: Unneeded variable: "ret". Return "0" on line 1390
@ 2020-06-02  4:35 kbuild test robot
  2020-06-02  4:35 ` [PATCH] fix returnvar.cocci warnings kbuild test robot
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2020-06-02  4:35 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 939 bytes --]

CC: kbuild-all(a)lists.01.org
TO: "Lubomir, Rintel," <lkundrak@v3.sk>

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
config: sparc-randconfig-c024-20200602 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>


coccinelle warnings: (new ones prefixed by >>)

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

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 29168 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] fix returnvar.cocci warnings
  2020-06-02  4:35 [lkundrak-linux-mmp:lr/ariel 61/67] sound/soc/codecs/88ce156-codec.c:1341:5-8: Unneeded variable: "ret". Return "0" on line 1390 kbuild test robot
@ 2020-06-02  4:35 ` kbuild test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2020-06-02  4:35 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 1485 bytes --]

CC: kbuild-all(a)lists.01.org
TO: "Lubomir, Rintel," <lkundrak@v3.sk>
CC: Liam Girdwood <lgirdwood@gmail.com>
CC: Mark Brown <broonie@kernel.org>
CC: Jaroslav Kysela <perex@perex.cz>
CC: Takashi Iwai <tiwai@suse.com>
CC: alsa-devel(a)alsa-project.org
CC: linux-kernel(a)vger.kernel.org

From: kbuild test robot <lkp@intel.com>

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 <lkp@intel.com>
---

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;
 
 }
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-02  4:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-02  4:35 [lkundrak-linux-mmp:lr/ariel 61/67] sound/soc/codecs/88ce156-codec.c:1341:5-8: Unneeded variable: "ret". Return "0" on line 1390 kbuild test robot
2020-06-02  4:35 ` [PATCH] fix returnvar.cocci warnings kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.