Skip to content

Commit

Permalink
net: ethernet: fix platform_no_drv_owner.cocci warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yang Li authored and David S. Miller committed May 13, 2022
1 parent 0f6deac commit 7b8b822
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/ethernet/sunplus/spl2sw_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,6 @@ static struct platform_driver spl2sw_driver = {
.remove = spl2sw_remove,
.driver = {
.name = "sp7021_emac",
.owner = THIS_MODULE,
.of_match_table = spl2sw_of_match,
},
};
Expand Down

0 comments on commit 7b8b822

Please sign in to comment.