Commit 72887c8644384c0cc43b9298ae0659de383f2e9c
Committed by
Felipe Balbi
1 parent
d6d0f665ad
Exists in
master
and in
39 other branches
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/usb/musb/musb_host.c
... | ... | @@ -1575,7 +1575,7 @@ |
1575 | 1575 | /* even if there was an error, we did the dma |
1576 | 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 | 1579 | d->status = 0; |
1580 | 1580 | |
1581 | 1581 | if (++qh->iso_idx >= urb->number_of_packets) |