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; 3+ 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] 3+ 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; 3+ 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] 3+ messages in thread

* [PATCH] fix returnvar.cocci warnings
  2020-09-01 19:56 [RFC V2 2/9] Introduce page table population function for direct build EPT feature kernel test robot
@ 2020-09-01 19:56 ` kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2020-09-01 19:56 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
In-Reply-To: <f0c109e76f3cd4a1bfd1ca3ff74e0d36c0288ca9.1598868204.git.yulei.kernel@gmail.com>
References: <f0c109e76f3cd4a1bfd1ca3ff74e0d36c0288ca9.1598868204.git.yulei.kernel@gmail.com>
TO: yulei.kernel(a)gmail.com

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

arch/x86/kvm/mmu/mmu.c:6299:5-8: Unneeded variable: "ret". Return "0" on line 6349


 Remove unneeded variable used to store return value.

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

CC: Yulei Zhang <yulei.kernel@gmail.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---

url:    https://github.com/0day-ci/linux/commits/yulei-kernel-gmail-com/x86-mmu-Introduce-parallel-memory-virtualization-to-boost-performance/20200901-221509
base:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git linux-next
:::::: branch date: 6 hours ago
:::::: commit date: 6 hours ago

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

 mmu.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- a/arch/x86/kvm/mmu/mmu.c
+++ b/arch/x86/kvm/mmu/mmu.c
@@ -6296,7 +6296,6 @@ static int direct_build_tdp_set_spte(str
 		    bool dirty, bool host_writable)
 {
 	u64 spte = 0;
-	int ret = 0;
 	/*
 	 * For the EPT case, shadow_present_mask is 0 if hardware
 	 * supports exec-only page table entries.  In that case,
@@ -6346,7 +6345,7 @@ static int direct_build_tdp_set_spte(str
 	if (mmu_spte_update(sptep, spte))
 		kvm_flush_remote_tlbs(kvm);
 
-	return ret;
+	return 0;
 }
 
 static void __kvm_walk_global_page(struct kvm *kvm, u64 addr, int level)

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

end of thread, other threads:[~2020-09-01 19:56 UTC | newest]

Thread overview: 3+ 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
2020-09-01 19:56 [RFC V2 2/9] Introduce page table population function for direct build EPT feature kernel test robot
2020-09-01 19:56 ` [PATCH] fix returnvar.cocci warnings kernel 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.