Skip to content

Commit 21766d1

Browse files
Villemoesgregkh
authored andcommitted
devtmpfs: simplify initialization of mount_dev
Avoid a bit of ifdeffery by using the IS_ENABLED() helper. Signed-off-by: Rasmus Villemoes <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 0ff0e95 commit 21766d1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/base/devtmpfs.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@
3030

3131
static struct task_struct *thread;
3232

33-
#if defined CONFIG_DEVTMPFS_MOUNT
34-
static int mount_dev = 1;
35-
#else
36-
static int mount_dev;
37-
#endif
33+
static int mount_dev = IS_ENABLED(CONFIG_DEVTMPFS_MOUNT);
3834

3935
static DEFINE_SPINLOCK(req_lock);
4036

0 commit comments

Comments
 (0)