summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2014-04-21 15:50:35 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-04-23 09:21:17 +0200
commitb7f627bb34a16ceb0e3f6cb3fbbac661e5a6c190 (patch)
tree170bf52684dee0960f27cc3065ef591a1df3ae5e
parent4ab9051bd30dec196bb10801fcde746776f5a3a7 (diff)
downloadbarebox-b7f627bb34a16ceb0e3f6cb3fbbac661e5a6c190.tar.gz
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>
-rw-r--r--commands/uimage.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/commands/uimage.c b/commands/uimage.c
index 345e496..bdc7444 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) {