net: dpaa2-switch: Remove redundant initialization owner in dpaa2_switch_drv
authorLi Zetao <lizetao1@huawei.com>
Fri, 4 Aug 2023 09:59:46 +0000 (17:59 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 8 Aug 2023 02:18:23 +0000 (19:18 -0700)
The fsl_mc_driver_register() will set "THIS_MODULE" to driver.owner when
register a fsl_mc_driver driver, so it is redundant initialization to set
driver.owner in dpaa2_switch_drv statement. Remove it for clean code.

Signed-off-by: Li Zetao <lizetao1@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20230804095946.99956-3-lizetao1@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c

index 21cc4e5..97d3151 100644 (file)
@@ -3457,7 +3457,6 @@ MODULE_DEVICE_TABLE(fslmc, dpaa2_switch_match_id_table);
 static struct fsl_mc_driver dpaa2_switch_drv = {
        .driver = {
                .name = KBUILD_MODNAME,
-               .owner = THIS_MODULE,
        },
        .probe = dpaa2_switch_probe,
        .remove = dpaa2_switch_remove,