From mboxrd@z Thu Jan 1 00:00:00 1970 From: Przemyslaw Marczak Date: Tue, 06 May 2014 08:30:59 +0200 Subject: [U-Boot] [PATCH v4 1/3] usb:gadget:f_thor: code cleanup in function download_tail() In-Reply-To: <1398704249-23533-1-git-send-email-p.marczak@samsung.com> References: <1398246231-22214-1-git-send-email-p.marczak@samsung.com> <1398704249-23533-1-git-send-email-p.marczak@samsung.com> Message-ID: <536881A3.6000100@samsung.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Heiko, On 04/28/2014 06:57 PM, Przemyslaw Marczak wrote: > 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 > Cc: Lukasz Majewski > Cc: Marek Vasut > Cc: Heiko Schocher > Cc: Tom Rini > > --- > Changes v2: > - separate fix and cleanup into two commits > > Changes v3: > - download_tail(): add exit label > > Changes v4: > - none > --- Could you look at those changes, please? Thank you -- Przemyslaw Marczak Samsung R&D Institute Poland Samsung Electronics p.marczak at samsung.com