summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorKuan-Wei Chiu <visitorckw@gmail.com>2025-10-11 09:38:37 +0300
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2025-10-15 11:38:28 +0300
commit0254329897495c42646144376230add710078937 (patch)
tree6cc797b41cc5102d79deb651d73d719202f4ef03 /include/linux
parent32647324c77012b7aed7ef48752909510d3c7ec7 (diff)
downloadlinux-0254329897495c42646144376230add710078937.tar.xz
platform/x86/amd: hfi: Remove redundant assignment to .owner
The coccicheck tool reports the following warning for this driver: ./hfi.c:509:3-8: No need to set .owner here. The core will do it. The manual assignment of .owner = THIS_MODULE; in the platform_driver struct is redundant. The platform_driver_register() function, which is called to register the driver, is a macro that automatically sets the driver's owner to THIS_MODULE. The driver core handles this assignment internally, making the explicit initialization in the struct definition unnecessary. Remove the unnecessary line. Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com> Reviewed-by: Mario Limonciello <mario.limonciello@amd.com> Link: https://patch.msgid.link/20251011063837.2318535-3-visitorckw@gmail.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions