Skip to content

Commit d7955ce

Browse files
Li Zetaoawilliam
authored andcommitted
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 <[email protected]> Acked-by: Nikhil Agarwal <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alex Williamson <[email protected]>
1 parent fc9da66 commit d7955ce

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/vfio/cdx/main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ static struct cdx_driver vfio_cdx_driver = {
223223
.match_id_table = vfio_cdx_table,
224224
.driver = {
225225
.name = "vfio-cdx",
226-
.owner = THIS_MODULE,
227226
},
228227
.driver_managed_dma = true,
229228
};

0 commit comments

Comments
 (0)