Skip to contentSkip to conversation

drivers/leds/leds-turris-omnia.c:47:13: warning: unused variable 'ret'

PATCH kernel test robot 1 participant 1 message Sep 21, 2023 LED

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/lee/leds.git for-leds-next
head:   c015f343e07aa8ed701372b8acdb4bdc021eaeaa
commit: 5e5ec959d9d6143e95427d1cf562ab61b8d17ed4 [53/56] leds: turris-omnia: Do not use SMBUS calls
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20230921/[email protected]/config)
compiler: m68k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230921/[email protected]/reproduce)

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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

drivers/leds/leds-turris-omnia.c: In function 'omnia_cmd_write_u8':

>> drivers/leds/leds-turris-omnia.c:47:13: warning: unused variable 'ret' [-Wunused-variable]
      47 |         int ret;
         |             ^~~

vim +/ret +47 drivers/leds/leds-turris-omnia.c

    43	
    44	static int omnia_cmd_write_u8(const struct i2c_client *client, u8 cmd, u8 val)
    45	{
    46		u8 buf[2] = { cmd, val };
  > 47		int ret;
    48	
    49		return i2c_master_send(client, buf, sizeof(buf));
    50	}
    51	
Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki