projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0d70bc
)
kobject: Fix warnings in lib/kobject_uevent.c
author
Bo YU
<tsu.yubo@gmail.com>
Tue, 30 Oct 2018 12:01:15 +0000
(08:01 -0400)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sun, 11 Nov 2018 19:27:43 +0000
(11:27 -0800)
Add a blank after declaration.
Signed-off-by: Bo YU <tsu.yubo@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
lib/kobject_uevent.c
patch
|
blob
|
history
diff --git
a/lib/kobject_uevent.c
b/lib/kobject_uevent.c
index
402765c
..
27c6118
100644
(file)
--- 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);
}