]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
staging: gpib: Remove unnecessary .owner assignment
authorYu-Chun Lin <eleanor15x@gmail.com>
Sun, 19 Jan 2025 09:22:47 +0000 (17:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Feb 2025 15:06:20 +0000 (16:06 +0100)
commit8e4d3729efb4e4716cb12a25e06dbe40f1a0191f
tree578bdb9a60699226be34cdacb2c522dc52474e5a
parent6011fadfee652cc109df7e925a025e46b0aa13e5
staging: gpib: Remove unnecessary .owner assignment

The driver core automatically sets the '.owner' field, so there is no
need to assign 'THIS_MODULE' explicitly.

This change fixes the warning reported by the kernel test robot:

cocci warnings: (new ones prefixed by >>)
>> drivers/staging/gpib/eastwood/fluke_gpib.c:1145:3-8: No need to set .owner here. The core will do it.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202501182304.q5PrJvhd-lkp@intel.com/
Signed-off-by: Yu-Chun Lin <eleanor15x@gmail.com>
Link: https://lore.kernel.org/r/20250119092247.1873176-1-eleanor15x@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gpib/eastwood/fluke_gpib.c