[PATCH -next] net: ethernet: fix platform_no_drv_owner.cocci warning

Yang Li posted 1 patch 3 years, 12 months ago
drivers/net/ethernet/sunplus/spl2sw_driver.c | 1 -
1 file changed, 1 deletion(-)
[PATCH -next] net: ethernet: fix platform_no_drv_owner.cocci warning
Posted by Yang Li 3 years, 12 months ago
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>
---
 drivers/net/ethernet/sunplus/spl2sw_driver.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/ethernet/sunplus/spl2sw_driver.c b/drivers/net/ethernet/sunplus/spl2sw_driver.c
index 8320fa833d3e..bf32f425b19d 100644
--- a/drivers/net/ethernet/sunplus/spl2sw_driver.c
+++ b/drivers/net/ethernet/sunplus/spl2sw_driver.c
@@ -566,7 +566,6 @@ static struct platform_driver spl2sw_driver = {
 	.remove = spl2sw_remove,
 	.driver = {
 		.name = "sp7021_emac",
-		.owner = THIS_MODULE,
 		.of_match_table = spl2sw_of_match,
 	},
 };
-- 
2.20.1.7.g153144c
Re: [PATCH -next] net: ethernet: fix platform_no_drv_owner.cocci warning
Posted by patchwork-bot+netdevbpf@kernel.org 3 years, 11 months ago
Hello:

This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Thu, 12 May 2022 16:03:57 +0800 you wrote:
> 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>
> 
> [...]

Here is the summary with links:
  - [-next] net: ethernet: fix platform_no_drv_owner.cocci warning
    https://git.kernel.org/netdev/net-next/c/7b8b82224c26

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html