]> git.dujemihanovic.xyz Git - u-boot.git/commit
rkcommon.c: Drop pointless assignment
authorSimon Glass <sjg@chromium.org>
Wed, 7 Jun 2017 16:28:47 +0000 (10:28 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 12 Jun 2017 12:38:12 +0000 (08:38 -0400)
commit22929bec528f42c1a7fbcd76adeea8daed9ba55c
tree225d5c0349f1e80d86b2058c09a6a0795132cb72
parentbaa7d345fb2a7aaee31af6d77f2a790e89864af6
rkcommon.c: Drop pointless assignment

Assigning a variable to itself is not necessary. Drop this and also add a
check for malloc() failure.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Coverity (CID: 161418)
Fixes: 111bcc4 (rockchip: mkimage: pad the header to 8-bytes (using a 'nop') for RK3399)
tools/rkcommon.c