summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo YU <tsu.yubo@gmail.com>2018-10-30 08:01:15 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-11 11:27:43 -0800
commit6be244dcd59b01245394b62a128901b1cfec468c (patch)
tree1f4bbc6f2d85f2809d6a1c3209a1f2f703c9c70a
parente0d70bcb38d7eae5eb4da2db130a29d7007eac74 (diff)
kobject: Fix warnings in lib/kobject_uevent.c
Add a blank after declaration. Signed-off-by: Bo YU <tsu.yubo@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--lib/kobject_uevent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c
index 402765c3a9cb..27c6118afd1c 100644
--- a/lib/kobject_uevent.c
+++ b/lib/kobject_uevent.c
@@ -240,6 +240,7 @@ static int kobj_usermode_filter(struct kobject *kobj)
ops = kobj_ns_ops(kobj);
if (ops) {
const void *init_ns, *ns;
+
ns = kobj->ktype->namespace(kobj);
init_ns = ops->initial_ns();
return ns != init_ns;
@@ -390,6 +391,7 @@ static int kobject_uevent_net_broadcast(struct kobject *kobj,
ops = kobj_ns_ops(kobj);
if (!ops && kobj->kset) {
struct kobject *ksobj = &kobj->kset->kobj;
+
if (ksobj->parent != NULL)
ops = kobj_ns_ops(ksobj->parent);
}