From 9880cd69f41ad4bd3665acee3517a769a4c1924f Mon Sep 17 00:00:00 2001 From: Alexander Aring Date: Thu, 10 Apr 2014 14:04:04 +0200 Subject: memtest: cleanup error handling Signed-off-by: Alexander Aring Signed-off-by: Sascha Hauer --- commands/memtest.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'commands/memtest.c') diff --git a/commands/memtest.c b/commands/memtest.c index a71576eeb9..dc05e9ed27 100644 --- a/commands/memtest.c +++ b/commands/memtest.c @@ -232,12 +232,12 @@ out: if (ret == -EINTR) printf("\n"); - printf("Memtest failed.\n"); + printf("Memtest failed. Error: %d\n", ret); return 1; - } else { - printf("Memtest successful.\n"); - return 0; } + + printf("Memtest successful.\n"); + return 0; } static const __maybe_unused char cmd_memtest_help[] = -- cgit v1.2.3