[sailus-media-tree:master 26/27] drivers/media/v4l2-core/v4l2-async.c:623:13: warning: unused variable 'ret'

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

 



tree:   git://linuxtv.org/sailus/media_tree.git master
head:   54ee11761885407056f4ca60309739e2db6b02dc
commit: 1277bce40e9cfe5831808780228d1b1cf645e1d4 [26/27] media: v4l: async: Don't set notifier's V4L2 device if registering fails
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20240309/202403090851.cCiC7PN1-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/20240309/202403090851.cCiC7PN1-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/202403090851.cCiC7PN1-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

   drivers/media/v4l2-core/v4l2-async.c: In function 'v4l2_async_nf_register':
>> drivers/media/v4l2-core/v4l2-async.c:623:13: warning: unused variable 'ret' [-Wunused-variable]
     623 |         int ret;
         |             ^~~


vim +/ret +623 drivers/media/v4l2-core/v4l2-async.c

a3620cb48d303f Sakari Ailus          2017-09-24  620  
b8ec754ae4c563 Sakari Ailus          2023-02-23  621  int v4l2_async_nf_register(struct v4l2_async_notifier *notifier)
a3620cb48d303f Sakari Ailus          2017-09-24  622  {
a3620cb48d303f Sakari Ailus          2017-09-24 @623  	int ret;
a3620cb48d303f Sakari Ailus          2017-09-24  624  
b8ec754ae4c563 Sakari Ailus          2023-02-23  625  	if (WARN_ON(!notifier->v4l2_dev == !notifier->sd))
a3620cb48d303f Sakari Ailus          2017-09-24  626  		return -EINVAL;
a3620cb48d303f Sakari Ailus          2017-09-24  627  
1277bce40e9cfe Sakari Ailus          2024-03-08  628  	return __v4l2_async_nf_register(notifier);
a3620cb48d303f Sakari Ailus          2017-09-24  629  }
3c8c153914812a Sakari Ailus          2021-03-05  630  EXPORT_SYMBOL(v4l2_async_nf_register);
e9e310491bdbc8 Guennadi Liakhovetski 2013-01-08  631  

:::::: The code at line 623 was first introduced by commit
:::::: a3620cb48d303f07160694c00d9c1c8f0ea96690 media: v4l: async: Prepare for async sub-device notifiers

:::::: TO: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx>
:::::: CC: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxxx>

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




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux