Re: [PATCH -next] vfio/cdx: Remove redundant initialization owner in vfio_cdx_driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 8 Aug 2023 10:09:37 +0800
Li Zetao <lizetao1@xxxxxxxxxx> wrote:

> 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@xxxxxxxxxx>
> ---
>  drivers/vfio/cdx/main.c | 1 -
>  1 file changed, 1 deletion(-)

Applied to vfio next branch for v6.6.  Thanks!

Alex


> 
> 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,
>  };




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux