]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: fix platform_no_drv_owner.cocci warning
authorYang Li <yang.lee@linux.alibaba.com>
Thu, 12 May 2022 08:03:57 +0000 (16:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 May 2022 10:31:18 +0000 (11:31 +0100)
commit855251c1c52271942fd9dd99a51f777186dd2ba9
tree45661b306850d2fa5d0570abd2c50eda161aa1cb
parentbbd93fb80378a75a1e9963768283d1a93c0616f9
net: ethernet: fix platform_no_drv_owner.cocci warning

Remove .owner field if calls are used which set it automatically.
./drivers/net/ethernet/sunplus/spl2sw_driver.c:569:3-8: No need to set
.owner here. The core will do it.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sunplus/spl2sw_driver.c