diff options
author | Li Zetao <lizetao1@huawei.com> | 2023-08-08 10:12:38 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-08-10 17:29:42 -0700 |
commit | 215c44fa69d7a873e058b2e1c451c12025d94bee (patch) | |
tree | 917947426501aef370b963f72b52b47b26f79f79 /drivers/net/mhi_net.c | |
parent | dccb8eb2d37048b869f14abf258ad6d073494075 (diff) | |
download | lwn-215c44fa69d7a873e058b2e1c451c12025d94bee.tar.gz lwn-215c44fa69d7a873e058b2e1c451c12025d94bee.zip |
net: mhi: Remove redundant initialization owner in mhi_net_driver
The module_mhi_driver() will set "THIS_MODULE" to driver.owner when
register a mhi_driver driver, so it is redundant initialization to set
driver.owner in the 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/20230808021238.2975585-1-lizetao1@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/mhi_net.c')
-rw-r--r-- | drivers/net/mhi_net.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/mhi_net.c b/drivers/net/mhi_net.c index 3d322ac4f6a5..ae169929a9d8 100644 --- a/drivers/net/mhi_net.c +++ b/drivers/net/mhi_net.c @@ -403,7 +403,6 @@ static struct mhi_driver mhi_net_driver = { .id_table = mhi_net_id_table, .driver = { .name = "mhi_net", - .owner = THIS_MODULE, }, }; |