Skip to content

Commit 72887c8

Browse files
nmarci1Felipe Balbi
authored andcommitted
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>
1 parent d6d0f66 commit 72887c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/musb/musb_host.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1575,7 +1575,7 @@ void musb_host_rx(struct musb *musb, u8 epnum)
15751575
/* even if there was an error, we did the dma
15761576
* for iso_frame_desc->length
15771577
*/
1578-
if (d->status != EILSEQ && d->status != -EOVERFLOW)
1578+
if (d->status != -EILSEQ && d->status != -EOVERFLOW)
15791579
d->status = 0;
15801580

15811581
if (++qh->iso_idx >= urb->number_of_packets)

0 commit comments

Comments
 (0)