Skip to content

Commit

Permalink
8250_men_mcb: Remove redundant initialization owner in mcb_driver
Browse files Browse the repository at this point in the history
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 mcb_driver statement. Remove it for clean code.

Signed-off-by: Li Zetao <lizetao1@huawei.com>
Link: https://lore.kernel.org/r/20230804100843.100348-1-lizetao1@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Li Zetao authored and Greg Kroah-Hartman committed Aug 4, 2023
1 parent b581686 commit 06b6493
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/tty/serial/8250/8250_men_mcb.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ MODULE_DEVICE_TABLE(mcb, serial_8250_men_mcb_ids);
static struct mcb_driver mcb_driver = {
.driver = {
.name = "8250_men_mcb",
.owner = THIS_MODULE,
},
.probe = serial_8250_men_mcb_probe,
.remove = serial_8250_men_mcb_remove,
Expand Down

0 comments on commit 06b6493

Please sign in to comment.