From 0eec2f5251cb4612a15e5ae67f4df9a30f5bf4eb Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 6 Feb 2022 00:41:20 +0800 Subject: [PATCH] fs: Remove the unnecessary Kconfig definition since all these options should always have the default value Signed-off-by: Xiang Xiao --- fs/mount/fs_automount.c | 9 --------- fs/mqueue/mqueue.h | 6 ------ fs/vfs/fs_eventfd.c | 13 ------------- fs/vfs/fs_timerfd.c | 9 --------- 4 files changed, 37 deletions(-) diff --git a/fs/mount/fs_automount.c b/fs/mount/fs_automount.c index 3bd42193c6..489ee2fc10 100644 --- a/fs/mount/fs_automount.c +++ b/fs/mount/fs_automount.c @@ -54,15 +54,6 @@ * Pre-processor Definitions ****************************************************************************/ -/* Configuration ************************************************************ - * - * CONFIG_FS_AUTOMOUNTER - Enables AUTOMOUNT support - */ - -#ifndef CONFIG_FS_AUTOMOUNTER_VFS_PATH -# define CONFIG_FS_AUTOMOUNTER_VFS_PATH "/var" -#endif - /* Pre-requisites */ #ifndef CONFIG_SCHED_WORKQUEUE diff --git a/fs/mqueue/mqueue.h b/fs/mqueue/mqueue.h index aac018ef50..3b7e84ceb0 100644 --- a/fs/mqueue/mqueue.h +++ b/fs/mqueue/mqueue.h @@ -31,12 +31,6 @@ * Pre-processor Definitions ****************************************************************************/ -/* Configuration ************************************************************/ - -#ifndef CONFIG_FS_MQUEUE_MPATH -# define CONFIG_FS_MQUEUE_MPATH "/var/mqueue" -#endif - /* Sizes of things */ #define MAX_MQUEUE_PATH 64 diff --git a/fs/vfs/fs_eventfd.c b/fs/vfs/fs_eventfd.c index 6cd4147743..4a69333efe 100644 --- a/fs/vfs/fs_eventfd.c +++ b/fs/vfs/fs_eventfd.c @@ -36,19 +36,6 @@ #include "inode/inode.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -#ifndef CONFIG_EVENT_FD_VFS_PATH -#define CONFIG_EVENT_FD_VFS_PATH "/var/event" -#endif - -#ifndef CONFIG_EVENT_FD_NPOLLWAITERS -/* Maximum number of threads than can be waiting for POLL events */ -#define CONFIG_EVENT_FD_NPOLLWAITERS 2 -#endif - /**************************************************************************** * Private Types ****************************************************************************/ diff --git a/fs/vfs/fs_timerfd.c b/fs/vfs/fs_timerfd.c index ff300caff4..358a9743f9 100644 --- a/fs/vfs/fs_timerfd.c +++ b/fs/vfs/fs_timerfd.c @@ -45,15 +45,6 @@ * Pre-processor Definitions ****************************************************************************/ -#ifndef CONFIG_TIMER_FD_VFS_PATH -#define CONFIG_TIMER_FD_VFS_PATH "/var/timer" -#endif - -#ifndef CONFIG_TIMER_FD_NPOLLWAITERS -/* Maximum number of threads than can be waiting for POLL events */ -#define CONFIG_TIMER_FD_NPOLLWAITERS 2 -#endif - #define TIMER_FD_WORK LPWORK /****************************************************************************