summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorMárton Németh <nm127@freemail.hu>2011-05-30 20:45:42 +0200
committerFelipe Balbi <balbi@ti.com>2011-06-09 12:01:03 +0300
commit72887c8644384c0cc43b9298ae0659de383f2e9c (patch)
treec0f5270a8ec4763f523f541f7721211982ac7356 /drivers/usb
parentd6d0f665ad869c8ad8b8a42c4393e02dfe227e12 (diff)
downloadop-kernel-dev-72887c8644384c0cc43b9298ae0659de383f2e9c.zip
op-kernel-dev-72887c8644384c0cc43b9298ae0659de383f2e9c.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
index 7295e31..8b2473f 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)
OpenPOWER on IntegriCloud