mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-11 11:38:51 +01:00
usb: dfu: decrease dfu->r_left along with the transfer
The value of dfu->r_left need decrease along with the transfer Signed-off-by: Bo Shen <voice.shen@atmel.com>
This commit is contained in:
parent
522c95647d
commit
c2617bc773
1 changed files with 1 additions and 0 deletions
|
|
@ -229,6 +229,7 @@ static int dfu_read_buffer_fill(struct dfu_entity *dfu, void *buf, int size)
|
|||
dfu->crc = crc32(dfu->crc, buf, chunk);
|
||||
dfu->i_buf += chunk;
|
||||
dfu->b_left -= chunk;
|
||||
dfu->r_left -= chunk;
|
||||
size -= chunk;
|
||||
buf += chunk;
|
||||
readn += chunk;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue