From b7f627bb34a16ceb0e3f6cb3fbbac661e5a6c190 Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Mon, 21 Apr 2014 15:50:35 +0200 Subject: 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 Signed-off-by: Sascha Hauer --- commands/uimage.c | 7 ++----- 1 file 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) { -- cgit v1.2.3