usb: dfu: decrease dfu->r_left along with the transfer
authorBo Shen <voice.shen@atmel.com>
Wed, 16 Oct 2013 09:26:37 +0000 (17:26 +0800)
committerMarek Vasut <marex@denx.de>
Fri, 8 Nov 2013 19:46:20 +0000 (20:46 +0100)
commitc2617bc77323e75f68cc7aa6ce54bf39771f1e7a
tree7d4cce70e15881dc776eae295bcf2756cc9c4275
parent522c95647df3251ffda2749ded207f30964c8866
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>
drivers/dfu/dfu.c