tools: imx8image: fix coverity CID 184233
authorPeng Fan <peng.fan@nxp.com>
Mon, 5 Nov 2018 09:53:28 +0000 (09:53 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 6 Nov 2018 10:23:59 +0000 (11:23 +0100)
commita9f7f1c58535af68efda0127322de30a33dd31b7
tree3edeeca63d4afcc605600a88132128eec41273f0
parentdf439e938ceb5165297c3e34b6485af0238608ef
tools: imx8image: fix coverity CID 184233

Fix:
CID 184233:    (NEGATIVE_RETURNS)
Using variable "container" as an index to array "imx_header.fhdr".

Reported-by: Coverity
Signed-off-by: Peng Fan <peng.fan@nxp.com>
tools/imx8image.c