From 74c506b4d16bb91802da5f3f5f64a5fb5f63c78e Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Thu, 13 Aug 2020 23:05:56 +0800 Subject: [PATCH] nsh: Don't check CONFIG_NFILE_STREAMS for mkdir/rename/rmdir/fs_unlink since these function don't depend on standard input/output function Signed-off-by: Xiang Xiao Change-Id: I320659eff933d49c4872e43320fa30696d8b8a54 --- nshlib/nsh.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/nshlib/nsh.h b/nshlib/nsh.h index 06e80ccf2..e21950241 100644 --- a/nshlib/nsh.h +++ b/nshlib/nsh.h @@ -67,18 +67,8 @@ * pseudo-filesystem are not disabled. */ -#undef NSH_HAVE_WRITABLE_MOUNTPOINT -#if !defined(CONFIG_DISABLE_MOUNTPOINT) && CONFIG_NFILE_STREAMS > 0 -# define NSH_HAVE_WRITABLE_MOUNTPOINT 1 -#endif - -#undef NSH_HAVE_PSEUDOFS_OPERATIONS -#if !defined(CONFIG_DISABLE_PSEUDOFS_OPERATIONS) && CONFIG_NFILE_STREAMS > 0 -# define NSH_HAVE_PSEUDOFS_OPERATIONS 1 -#endif - #undef NSH_HAVE_DIROPTS -#if defined(NSH_HAVE_WRITABLE_MOUNTPOINT) || defined(NSH_HAVE_PSEUDOFS_OPERATIONS) +#if !defined(CONFIG_DISABLE_MOUNTPOINT) || !defined(CONFIG_DISABLE_PSEUDOFS_OPERATIONS) # define NSH_HAVE_DIROPTS 1 #endif