Commit 21766d11 authored by Rasmus Villemoes's avatar Rasmus Villemoes Committed by Greg Kroah-Hartman
Browse files

devtmpfs: simplify initialization of mount_dev



Avoid a bit of ifdeffery by using the IS_ENABLED() helper.

Signed-off-by: default avatarRasmus Villemoes <linux@rasmusvillemoes.dk>
Link: https://lore.kernel.org/r/20200115184154.3492-4-linux@rasmusvillemoes.dk


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0ff0e95e
Loading
Loading
Loading
Loading
+1 −5
Original line number Original line Diff line number Diff line
@@ -30,11 +30,7 @@


static struct task_struct *thread;
static struct task_struct *thread;


#if defined CONFIG_DEVTMPFS_MOUNT
static int mount_dev = IS_ENABLED(CONFIG_DEVTMPFS_MOUNT);
static int mount_dev = 1;
#else
static int mount_dev;
#endif


static DEFINE_SPINLOCK(req_lock);
static DEFINE_SPINLOCK(req_lock);