aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Zetao <[email protected]>2023-08-08 10:09:37 +0800
committerAlex Williamson <[email protected]>2023-08-16 11:13:51 -0600
commitd7955ce40e109d195ae2cfd0f782c5749eeb0cc7 (patch)
tree1038b8296b26461c942f3e3800c2a46546b0f2d5
parentfc9da66103d386386ad7e6fb2727971522c799a7 (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 <[email protected]> Acked-by: Nikhil Agarwal <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alex Williamson <[email protected]>
-rw-r--r--drivers/vfio/cdx/main.c1
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,
};