| .. | .. |
|---|
| 760 | 760 | musb_writew(epio, MUSB_RXCSR, csr); |
|---|
| 761 | 761 | |
|---|
| 762 | 762 | buffer_aint_mapped: |
|---|
| 763 | + fifo_count = min_t(unsigned int, |
|---|
| 764 | + request->length - request->actual, |
|---|
| 765 | + (unsigned int)fifo_count); |
|---|
| 763 | 766 | musb_read_fifo(musb_ep->hw_ep, fifo_count, (u8 *) |
|---|
| 764 | 767 | (request->buf + request->actual)); |
|---|
| 765 | 768 | request->actual += fifo_count; |
|---|
| .. | .. |
|---|
| 1085 | 1088 | u8 epnum; |
|---|
| 1086 | 1089 | struct musb_ep *musb_ep; |
|---|
| 1087 | 1090 | void __iomem *epio; |
|---|
| 1088 | | - int status = 0; |
|---|
| 1089 | 1091 | |
|---|
| 1090 | 1092 | musb_ep = to_musb_ep(ep); |
|---|
| 1091 | 1093 | musb = musb_ep->musb; |
|---|
| .. | .. |
|---|
| 1118 | 1120 | |
|---|
| 1119 | 1121 | musb_dbg(musb, "%s", musb_ep->end_point.name); |
|---|
| 1120 | 1122 | |
|---|
| 1121 | | - return status; |
|---|
| 1123 | + return 0; |
|---|
| 1122 | 1124 | } |
|---|
| 1123 | 1125 | |
|---|
| 1124 | 1126 | /* |
|---|
| .. | .. |
|---|
| 1318 | 1320 | } |
|---|
| 1319 | 1321 | |
|---|
| 1320 | 1322 | /* |
|---|
| 1321 | | - * Set or clear the halt bit of an endpoint. A halted enpoint won't tx/rx any |
|---|
| 1323 | + * Set or clear the halt bit of an endpoint. A halted endpoint won't tx/rx any |
|---|
| 1322 | 1324 | * data but will queue requests. |
|---|
| 1323 | 1325 | * |
|---|
| 1324 | 1326 | * exported to ep0 code |
|---|