From: Thomas Weber Date: Thu, 25 Nov 2010 07:05:30 +0000 (+0100) Subject: powerpc: cmd_ecctest: Use return value of cmd_usage X-Git-Tag: v2010.12-rc2~9 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e03dabe86b3bcb5be9e6d325f10747e3115cf4d1;p=oweals%2Fu-boot.git powerpc: cmd_ecctest: Use return value of cmd_usage Use the return value of cmd_usage instead of ignoring this and returning a 1. Signed-off-by: Thomas Weber Acked-by: Mike Frysinger --- diff --git a/arch/powerpc/cpu/ppc4xx/cmd_ecctest.c b/arch/powerpc/cpu/ppc4xx/cmd_ecctest.c index fd81b70e7a..542ab69a13 100644 --- a/arch/powerpc/cpu/ppc4xx/cmd_ecctest.c +++ b/arch/powerpc/cpu/ppc4xx/cmd_ecctest.c @@ -190,15 +190,13 @@ static int do_ecctest(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) int error; if (argc < 3) { - cmd_usage(cmdtp); - return 1; + return cmd_usage(cmdtp); } ptr = (u32 *)simple_strtoul(argv[1], NULL, 16); error = simple_strtoul(argv[2], NULL, 16); if ((error < 1) || (error > 2)) { - cmd_usage(cmdtp); - return 1; + return cmd_usage(cmdtp); } printf("Using address %p for %d bit ECC error injection\n",