usb:gadget:f_thor: code cleanup in function download_tail()
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Fri, 18 Apr 2014 07:48:24 +0000 (09:48 +0200)
committerMarek Vasut <marex@denx.de>
Wed, 30 Apr 2014 08:30:57 +0000 (10:30 +0200)
commitadfc17bf09ba67cff11472ffa58fc0208defa29c
treef1a430da82229f30eccedb91fd2f07682bfd40e3
parent08a98b89df39d25a1260f390c19be4649dfd303d
usb:gadget:f_thor: code cleanup in function download_tail()

In thor's download_tail() function, dfu_get_entity() is called
before each dfu_write() call and the returned entity pointers
are the same. So dfu_get_entity() can be called just once and
this patch changes this.

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Lukasz Majewski <l.majewski@samsung.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Heiko Schocher <hs@denx.de>
Cc: Tom Rini <trini@ti.com>
drivers/usb/gadget/f_thor.c