mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 12:52:30 +00:00
watchdog: menz069_wdt: Remove redundant initialization owner in men_z069_driver
The module_mcb_driver() will set "THIS_MODULE" to driver.owner when register a mcb_driver driver, so it is redundant initialization to set driver.owner in men_z069_driver statement. Remove it for clean code. Signed-off-by: Li Zetao <lizetao1@huawei.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20230804100617.100251-1-lizetao1@huawei.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
This commit is contained in:
parent
52a93d39b1
commit
130c3f7e46
@ -153,7 +153,6 @@ MODULE_DEVICE_TABLE(mcb, men_z069_ids);
|
||||
static struct mcb_driver men_z069_driver = {
|
||||
.driver = {
|
||||
.name = "z069-wdt",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = men_z069_probe,
|
||||
.remove = men_z069_remove,
|
||||
|
Loading…
Reference in New Issue
Block a user