Skip to content

Commit

Permalink
usb: ohci-nxp: fix use of integer as pointer
Browse files Browse the repository at this point in the history
The hcd pointer in ohci_hcd_nxp_probe() is
being initialised with a 0, so fix to NULL to
avoid the following sparse warning:

drivers/usb/host/ohci-nxp.c:153:31: warning: Using plain integer as NULL pointer

Signed-off-by: Ben Dooks <[email protected]>
Acked-by: Sylvain Lemieux <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
bjdooks-ct authored and gregkh committed Nov 4, 2019
1 parent a69dff9 commit 09e2a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/host/ohci-nxp.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ static void ohci_nxp_stop_hc(void)

static int ohci_hcd_nxp_probe(struct platform_device *pdev)
{
struct usb_hcd *hcd = 0;
struct usb_hcd *hcd = NULL;
const struct hc_driver *driver = &ohci_nxp_hc_driver;
struct resource *res;
int ret = 0, irq;
Expand Down

0 comments on commit 09e2a8b

Please sign in to comment.