From: Li Zetao Date: Tue, 8 Aug 2023 02:09:37 +0000 (+0800) Subject: vfio/cdx: Remove redundant initialization owner in vfio_cdx_driver X-Git-Tag: v6.6.7~2038^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d7955ce40e109d195ae2cfd0f782c5749eeb0cc7;p=platform%2Fkernel%2Flinux-starfive.git 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 Acked-by: Nikhil Agarwal Link: https://lore.kernel.org/r/20230808020937.2975196-1-lizetao1@huawei.com Signed-off-by: Alex Williamson --- diff --git a/drivers/vfio/cdx/main.c b/drivers/vfio/cdx/main.c index c376a69..de56686 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, };