diff --git a/nshlib/nsh_command.c b/nshlib/nsh_command.c index 895ed6bb8..8fb27681a 100644 --- a/nshlib/nsh_command.c +++ b/nshlib/nsh_command.c @@ -323,11 +323,9 @@ static const struct cmdmap_s g_cmdmap[] = # endif #endif -#ifdef NSH_HAVE_WRITABLE_MOUNTPOINT -# ifndef CONFIG_NSH_DISABLE_MKRD +#ifndef CONFIG_NSH_DISABLE_MKRD { "mkrd", cmd_mkrd, 2, 6, "[-m ] [-s ] " }, -# endif #endif #if !defined(CONFIG_DISABLE_MOUNTPOINT) && defined(CONFIG_FS_SMARTFS) && \ diff --git a/nshlib/nsh_fscmds.c b/nshlib/nsh_fscmds.c index 4916c4d94..afc079424 100644 --- a/nshlib/nsh_fscmds.c +++ b/nshlib/nsh_fscmds.c @@ -1360,7 +1360,6 @@ int cmd_mkfifo(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) * Name: cmd_mkrd ****************************************************************************/ -#ifdef NSH_HAVE_WRITABLE_MOUNTPOINT #ifndef CONFIG_NSH_DISABLE_MKRD int cmd_mkrd(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) { @@ -1458,7 +1457,6 @@ errout_with_fmt: return ERROR; } #endif -#endif /**************************************************************************** * Name: cmd_mksmartfs