Commit 79477b6b authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman Committed by Linus Torvalds

USB: fix sparse warnings in sl811-hcd driver.

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent d3e8ea41
......@@ -577,7 +577,7 @@ done(struct sl811 *sl811, struct sl811h_ep *ep, u8 bank, struct pt_regs *regs)
urb->status = urbstat;
spin_unlock(&urb->lock);
req = 0;
req = NULL;
ep->nextpid = USB_PID_ACK;
}
break;
......@@ -1151,7 +1151,7 @@ sl811h_hub_descriptor (
/* no overcurrent errors detection/handling */
temp |= 0x0010;
desc->wHubCharacteristics = cpu_to_le16(temp);
desc->wHubCharacteristics = (__force __u16)cpu_to_le16(temp);
/* two bitmaps: ports removable, and legacy PortPwrCtrlMask */
desc->bitmap[0] = 1 << 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment