mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
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>
This commit is contained in:
parent
e0d70bcb38
commit
6be244dcd5
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user