diff options
author | Li Zetao <lizetao1@huawei.com> | 2023-08-08 10:09:37 +0800 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2023-08-16 11:13:51 -0600 |
commit | d7955ce40e109d195ae2cfd0f782c5749eeb0cc7 (patch) | |
tree | 1038b8296b26461c942f3e3800c2a46546b0f2d5 /drivers/vfio/cdx | |
parent | fc9da66103d386386ad7e6fb2727971522c799a7 (diff) |
vfio/cdx: Remove redundant initialization owner in vfio_cdx_driver
The cdx_driver_register() will set "THIS_MODULE" to driver.owner when
register a cdx_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>
Acked-by: Nikhil Agarwal <nikhil.agarwal@amd.com>
Link: https://lore.kernel.org/r/20230808020937.2975196-1-lizetao1@huawei.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio/cdx')
-rw-r--r-- | drivers/vfio/cdx/main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/vfio/cdx/main.c b/drivers/vfio/cdx/main.c index c376a69d2db2..de56686581ae 100644 --- a/drivers/vfio/cdx/main.c +++ b/drivers/vfio/cdx/main.c @@ -223,7 +223,6 @@ static struct cdx_driver vfio_cdx_driver = { .match_id_table = vfio_cdx_table, .driver = { .name = "vfio-cdx", - .owner = THIS_MODULE, }, .driver_managed_dma = true, }; |