diff options
Diffstat (limited to 'drivers/usb/host/xhci-ring.c')
-rw-r--r-- | drivers/usb/host/xhci-ring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 09b2b551be72..a0b248c34526 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c | |||
@@ -3000,7 +3000,7 @@ static int prepare_ring(struct xhci_hcd *xhci, struct xhci_ring *ep_ring, | |||
3000 | if (num_trbs >= TRBS_PER_SEGMENT) { | 3000 | if (num_trbs >= TRBS_PER_SEGMENT) { |
3001 | xhci_err(xhci, "Too many fragments %d, max %d\n", | 3001 | xhci_err(xhci, "Too many fragments %d, max %d\n", |
3002 | num_trbs, TRBS_PER_SEGMENT - 1); | 3002 | num_trbs, TRBS_PER_SEGMENT - 1); |
3003 | return -ENOMEM; | 3003 | return -EINVAL; |
3004 | } | 3004 | } |
3005 | 3005 | ||
3006 | nop_cmd = cpu_to_le32(TRB_TYPE(TRB_TR_NOOP) | | 3006 | nop_cmd = cpu_to_le32(TRB_TYPE(TRB_TR_NOOP) | |