spl: spl_nor: Remove unused variable 'ret' warning
authorStefan Roese <sr@denx.de>
Tue, 21 Apr 2020 07:28:44 +0000 (09:28 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Mon, 27 Apr 2020 18:29:33 +0000 (20:29 +0200)
commitf1b0f1550b35ca5597e31e84ef7843c27d62a3bc
tree4f600cb32b8a79ea2d0b2fbd851fcf2e5e6e94fc
parent2fc91ed3baf39cca548107b03b3a9ac4fb0b47f6
spl: spl_nor: Remove unused variable 'ret' warning

With the if statement now for the legacy image handling, the compiler
now generates this compile time warning:

common/spl/spl_nor.c:27:6: warning: unused variable 'ret' [-Wunused-variable]

This patch removes this warning by changing the 'ret' variable handling.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Cc: Weijie Gao <weijie.gao@mediatek.com>
Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
common/spl/spl_nor.c