diff options
author | 2013-10-07 11:46:56 +0100 | |
---|---|---|
committer | 2013-10-07 11:46:56 +0100 | |
commit | 9f9e4266a66b6f9dcde305e85035615c06bdb7f7 (patch) | |
tree | c6f867c7a1bf94a3b4f13b19a9ce442c7aec9e79 /lib/kobject.c | |
parent | ASoC: twl6040: Remove redundant semicolon (diff) | |
parent | ASoC: dapm: Add support for virtual mixer controls (diff) | |
download | wireguard-linux-9f9e4266a66b6f9dcde305e85035615c06bdb7f7.tar.xz wireguard-linux-9f9e4266a66b6f9dcde305e85035615c06bdb7f7.zip |
Merge remote-tracking branch 'asoc/topic/dapm' into asoc-twl6040
Diffstat (limited to 'lib/kobject.c')
-rw-r--r-- | lib/kobject.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/kobject.c b/lib/kobject.c index 962175134702..669bf190d4fb 100644 --- a/lib/kobject.c +++ b/lib/kobject.c @@ -933,10 +933,7 @@ const struct kobj_ns_type_operations *kobj_ns_ops(struct kobject *kobj) bool kobj_ns_current_may_mount(enum kobj_ns_type type) { - bool may_mount = false; - - if (type == KOBJ_NS_TYPE_NONE) - return true; + bool may_mount = true; spin_lock(&kobj_ns_type_lock); if ((type > KOBJ_NS_TYPE_NONE) && (type < KOBJ_NS_TYPES) && |