diff options
author | Márton Németh <nm127@freemail.hu> | 2011-05-30 14:45:42 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-06-09 05:01:03 -0400 |
commit | 72887c8644384c0cc43b9298ae0659de383f2e9c (patch) | |
tree | c0f5270a8ec4763f523f541f7721211982ac7356 /drivers/usb | |
parent | d6d0f665ad869c8ad8b8a42c4393e02dfe227e12 (diff) |
usb: musb: host: compare status for negative error values
Variable d is a struct usb_iso_packet_descriptor. The status filed is usually
negative when an error happens.
Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/musb/musb_host.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c index 7295e316bdfc..8b2473fa0f47 100644 --- a/drivers/usb/musb/musb_host.c +++ b/drivers/usb/musb/musb_host.c | |||
@@ -1575,7 +1575,7 @@ void musb_host_rx(struct musb *musb, u8 epnum) | |||
1575 | /* even if there was an error, we did the dma | 1575 | /* even if there was an error, we did the dma |
1576 | * for iso_frame_desc->length | 1576 | * for iso_frame_desc->length |
1577 | */ | 1577 | */ |
1578 | if (d->status != EILSEQ && d->status != -EOVERFLOW) | 1578 | if (d->status != -EILSEQ && d->status != -EOVERFLOW) |
1579 | d->status = 0; | 1579 | d->status = 0; |
1580 | 1580 | ||
1581 | if (++qh->iso_idx >= urb->number_of_packets) | 1581 | if (++qh->iso_idx >= urb->number_of_packets) |