forked from Minki/linux
USB: host: fix sparse warning: Using plain integer as NULL pointer
Fix this sparse warning: drivers/usb/host/oxu210hp-hcd.c:2687:42: warning: Using plain integer as NULL pointer Signed-off-by: Hannes Eder <hannes@hanneseder.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
2dfa319a64
commit
a9f8ec4db1
@ -2684,7 +2684,7 @@ static int oxu_reset(struct usb_hcd *hcd)
|
|||||||
oxu->urb_len = 0;
|
oxu->urb_len = 0;
|
||||||
|
|
||||||
/* FIMXE */
|
/* FIMXE */
|
||||||
hcd->self.controller->dma_mask = 0UL;
|
hcd->self.controller->dma_mask = NULL;
|
||||||
|
|
||||||
if (oxu->is_otg) {
|
if (oxu->is_otg) {
|
||||||
oxu->caps = hcd->regs + OXU_OTG_CAP_OFFSET;
|
oxu->caps = hcd->regs + OXU_OTG_CAP_OFFSET;
|
||||||
|
Loading…
Reference in New Issue
Block a user