diff options
author | Lucas Stach <dev@lynxeye.de> | 2014-04-21 15:50:35 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-04-23 09:21:17 +0200 |
commit | b7f627bb34a16ceb0e3f6cb3fbbac661e5a6c190 (patch) | |
tree | 170bf52684dee0960f27cc3065ef591a1df3ae5e /commands/uimage.c | |
parent | 4ab9051bd30dec196bb10801fcde746776f5a3a7 (diff) | |
download | barebox-b7f627bb34a16ceb0e3f6cb3fbbac661e5a6c190.tar.gz barebox-b7f627bb34a16ceb0e3f6cb3fbbac661e5a6c190.tar.xz |
commands: uimage: remove redundant error message
uimage_verify already prints an error message if the CRC
is wrong. Romove the never reached redundant message in
the caller.
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/uimage.c')
-rw-r--r-- | commands/uimage.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/commands/uimage.c b/commands/uimage.c index 345e49600c..bdc74448d9 100644 --- a/commands/uimage.c +++ b/commands/uimage.c @@ -62,12 +62,9 @@ static int do_uimage(int argc, char *argv[]) if (verify) { printf("verifying data crc... "); ret = uimage_verify(handle); - if (ret) { + if (ret) goto err; - printf("Bad Data CRC\n"); - } else { - printf("ok\n"); - } + printf("ok\n"); } if (extract) { |