From 5e8ac5e02a09140e97d56a9d5313504dfa31282d Mon Sep 17 00:00:00 2001 From: Leo C Date: Mon, 3 Sep 2018 12:03:37 +0200 Subject: cmd_attach.c, cmd_boot.c, cmd_loadcpm3.c: use cmd_error() --- avr/cmd_fat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'avr/cmd_fat.c') diff --git a/avr/cmd_fat.c b/avr/cmd_fat.c index 77505b4..2970ac3 100644 --- a/avr/cmd_fat.c +++ b/avr/cmd_fat.c @@ -20,7 +20,6 @@ #include "timer.h" #include "debug.h" #include "env.h" -#include "errnum.h" #define DEBUG_FA 0 /* set to 1 to debug */ @@ -582,7 +581,7 @@ command_ret_t do_rw(cmd_tbl_t *cmdtp UNUSED, uint_fast8_t flag UNUSED, int argc, if (res) cmd_error(CMD_RET_FAILURE, res, PSTR("'%s'"), argv[1]); - if (buserr || res) + if (buserr) cmd_error(CMD_RET_FAILURE, EBUSTO, NULL); return CMD_RET_SUCCESS; -- cgit v1.2.3