summaryrefslogtreecommitdiff
path: root/avr/cmd_fat.c
diff options
context:
space:
mode:
authorLeo C2018-09-03 12:03:37 +0200
committerLeo C2018-09-04 21:26:04 +0200
commit5e8ac5e02a09140e97d56a9d5313504dfa31282d (patch)
tree87f6d50ce22abf3d49722da9a1f7111de812211b /avr/cmd_fat.c
parent86ee5f8bc4c5a4c204be6fff004ef6bf6b839dcd (diff)
downloadz180-stamp-5e8ac5e02a09140e97d56a9d5313504dfa31282d.zip
cmd_attach.c, cmd_boot.c, cmd_loadcpm3.c: use cmd_error()
Diffstat (limited to 'avr/cmd_fat.c')
-rw-r--r--avr/cmd_fat.c3
1 files changed, 1 insertions, 2 deletions
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;