Commit 72887c86 authored by Márton Németh's avatar Márton Németh Committed by Felipe Balbi

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: default avatarMárton Németh <nm127@freemail.hu>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent d6d0f665
...@@ -1575,7 +1575,7 @@ void musb_host_rx(struct musb *musb, u8 epnum) ...@@ -1575,7 +1575,7 @@ void musb_host_rx(struct musb *musb, u8 epnum)
/* even if there was an error, we did the dma /* even if there was an error, we did the dma
* for iso_frame_desc->length * for iso_frame_desc->length
*/ */
if (d->status != EILSEQ && d->status != -EOVERFLOW) if (d->status != -EILSEQ && d->status != -EOVERFLOW)
d->status = 0; d->status = 0;
if (++qh->iso_idx >= urb->number_of_packets) if (++qh->iso_idx >= urb->number_of_packets)
......
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