diff mbox series

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

Message ID 20220512080357.44357-1-yang.lee@linux.alibaba.com (mailing list archive)
State Accepted
Commit 7b8b82224c26863d9b6c67f6cc6044bc24044e44
Delegated to: Netdev Maintainers
Headers show
Series [-next] net: ethernet: fix platform_no_drv_owner.cocci warning | expand

Checks

Context Check Description
netdev/fixes_present success Fixes tag not required for -next series
netdev/subject_prefix warning Target tree name not specified in the subject
netdev/cover_letter success Single patches do not need cover letters
netdev/patch_count success Link
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 0 this patch: 0
netdev/cc_maintainers success CCed 6 of 6 maintainers
netdev/build_clang success Errors and warnings before: 0 this patch: 0
netdev/module_param success Was 0 now: 0
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 0 this patch: 0
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 7 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0
netdev/tree_selection success Guessing tree name failed - patch did not apply

Commit Message

Yang Li May 12, 2022, 8:03 a.m. UTC
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(-)

Comments

patchwork-bot+netdevbpf@kernel.org May 13, 2022, 10:40 a.m. UTC | #1
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!
diff mbox series

Patch

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,
 	},
 };