Re: [PATCH 2/4] usb: cdns2: Add main part of Cadence USBHS driver

From: Greg KH
Date: Thu Feb 16 2023 - 06:26:13 EST


On Thu, Feb 16, 2023 at 05:54:09AM -0500, Pawel Laszczak wrote:
> +static void cdns2_pci_remove(struct pci_dev *pdev)
> +{
> + struct cdns2_device *priv_dev;
> +
> + priv_dev = (struct cdns2_device *)pci_get_drvdata(pdev);

Nit, no need to cast for this.

thanks,

greg k-h