]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - avr/cmd_fat.c
cmd_attach.c, cmd_boot.c, cmd_loadcpm3.c: use cmd_error()
[z180-stamp.git] / avr / cmd_fat.c
index 77505b4b01d0eca453a1948b20f29d8ee4629741..2970ac3759f016364b2b5b149a0adfd2a076bd48 100644 (file)
@@ -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;