[U-Boot] [U-Boot,10/10] rkcommon.c: Drop pointless assignment

Tom Rini trini at konsulko.com
Mon Jun 12 22:43:55 UTC 2017


On Wed, Jun 07, 2017 at 10:28:47AM -0600, Simon Glass wrote:

> Assigning a variable to itself is not necessary. Drop this and also add a
> check for malloc() failure.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Reported-by: Coverity (CID: 161418)
> Fixes: 111bcc4 (rockchip: mkimage: pad the header to 8-bytes (using a 'nop') for RK3399)

Reviewed-by: Tom Rini <trini at konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170612/18d23db0/attachment.sig>


More information about the U-Boot mailing list