Skip to content

Commit

Permalink
devtmpfs: simplify initialization of mount_dev
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Villemoes authored and gregkh committed Jan 22, 2020
1 parent 0ff0e95 commit 21766d1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/base/devtmpfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@

static struct task_struct *thread;

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

static DEFINE_SPINLOCK(req_lock);

Expand Down

0 comments on commit 21766d1

Please sign in to comment.