dfu:usb:fix: Read the "filesize" environment variable only when file read
authorŁukasz Majewski <l.majewski@samsung.com>
Thu, 23 Aug 2012 23:33:56 +0000 (23:33 +0000)
committerMarek Vasut <marex@denx.de>
Thu, 20 Sep 2012 22:05:00 +0000 (00:05 +0200)
commit81c1d7b605e1a48d3c02248c5e51fabcf42f5014
tree8db3e0f096f30a5a324a4bdcc57f535717faa5fb
parent43e6627259da3900a73f40fb2fe3a6f106c0e2d7
dfu:usb:fix: Read the "filesize" environment variable only when file read

The "filesize" environment variable shall be read only when relevant
file is read.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Marek Vasut <marex@denx.de>
drivers/dfu/dfu_mmc.c