[lee-leds:for-leds-next 53/56] drivers/leds/leds-turris-omnia.c:47:13: warning: unused variable 'ret'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/202309212215.Yl5VQaSm-lkp@xxxxxxxxx/config)
compiler: m68k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230921/202309212215.Yl5VQaSm-lkp@xxxxxxxxx/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 <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309212215.Yl5VQaSm-lkp@xxxxxxxxx/

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	

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



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux