public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* drivers/leds/leds-st1202.c:194:66-71: WARNING: conversion to bool not needed here
@ 2025-02-18 10:54 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-18 10:54 UTC (permalink / raw)
  To: Vicentiu Galanopulo; +Cc: oe-kbuild-all, linux-kernel, Lee Jones

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   2408a807bfc3f738850ef5ad5e3fd59d66168996
commit: 939757aafeb9c266dda37657ee5f7a73ffd35ae2 leds: Add LED1202 I2C driver
date:   6 weeks ago
config: x86_64-randconfig-103-20250218 (https://download.01.org/0day-ci/archive/20250218/202502181845.xESVrC61-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502181845.xESVrC61-lkp@intel.com/

cocci warnings: (new ones prefixed by >>)
>> drivers/leds/leds-st1202.c:194:66-71: WARNING: conversion to bool not needed here

vim +194 drivers/leds/leds-st1202.c

   188	
   189	static int st1202_led_set(struct led_classdev *ldev, enum led_brightness value)
   190	{
   191		struct st1202_led *led = cdev_to_st1202_led(ldev);
   192		struct st1202_chip *chip = led->chip;
   193	
 > 194		return st1202_channel_set(chip, led->led_num, value == LED_OFF ? false : true);
   195	}
   196	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-02-18 10:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-18 10:54 drivers/leds/leds-st1202.c:194:66-71: WARNING: conversion to bool not needed here kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox