mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-21 06:24:12 +00:00
devtmpfs: simplify initialization of mount_dev
Avoid a bit of ifdeffery by using the IS_ENABLED() helper. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Link: https://lore.kernel.org/r/20200115184154.3492-4-linux@rasmusvillemoes.dk Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0ff0e95e99
commit
21766d11d1
1 changed files with 1 additions and 5 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue