tsnep: fix platform_no_drv_owner.cocci warning
authorYang Li <yang.lee@linux.alibaba.com>
Wed, 24 Nov 2021 02:36:24 +0000 (10:36 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 25 Nov 2021 01:09:07 +0000 (17:09 -0800)
Remove .owner field if calls are used which set it automatically

Eliminate the following coccicheck warning:
./drivers/net/ethernet/engleder/tsnep_main.c:1263: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>
Reviewed-by: Gerhard Engleder <gerhard@engleder-embedded.com>
Link: https://lore.kernel.org/r/1637721384-70836-2-git-send-email-yang.lee@linux.alibaba.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/engleder/tsnep_main.c

index 8333313..03d5b31 100644 (file)
@@ -1260,7 +1260,6 @@ MODULE_DEVICE_TABLE(of, tsnep_of_match);
 static struct platform_driver tsnep_driver = {
        .driver = {
                .name = TSNEP,
-               .owner = THIS_MODULE,
                .of_match_table = of_match_ptr(tsnep_of_match),
        },
        .probe = tsnep_probe,