diff options
author | Márton Németh <nm127@freemail.hu> | 2011-05-30 20:45:42 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-06-09 12:01:03 +0300 |
commit | 72887c8644384c0cc43b9298ae0659de383f2e9c (patch) | |
tree | c0f5270a8ec4763f523f541f7721211982ac7356 /drivers/usb/musb | |
parent | d6d0f665ad869c8ad8b8a42c4393e02dfe227e12 (diff) | |
download | blackbird-op-linux-72887c8644384c0cc43b9298ae0659de383f2e9c.tar.gz blackbird-op-linux-72887c8644384c0cc43b9298ae0659de383f2e9c.zip |
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/musb')
-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) /* even if there was an error, we did the dma * for iso_frame_desc->length */ - if (d->status != EILSEQ && d->status != -EOVERFLOW) + if (d->status != -EILSEQ && d->status != -EOVERFLOW) d->status = 0; if (++qh->iso_idx >= urb->number_of_packets) |