[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <11777000632194-git-send-email-gregkh@suse.de>
Date: Fri, 27 Apr 2007 11:53:21 -0700
From: Greg Kroah-Hartman <gregkh@...e.de>
To: linux-kernel@...r.kernel.org
Cc: Dmitriy Monakhov <dmonakhov@...nvz.org>,
Greg Kroah-Hartman <gregkh@...e.de>
Subject: [PATCH 07/46] kobject: kobject_shadow_add cleanup
From: Dmitriy Monakhov <dmonakhov@...nvz.org>
- correct function name in comments
- parrent assignment does metter only inside "if" block,
so move it inside this block.
Signed-off-by: Monakhov Dmitriy <dmonakhov@...nvz.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@...e.de>
---
lib/kobject.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/kobject.c b/lib/kobject.c
index f664551..bbbfab4 100644
--- a/lib/kobject.c
+++ b/lib/kobject.c
@@ -157,7 +157,7 @@ static void unlink(struct kobject * kobj)
}
/**
- * kobject_add - add an object to the hierarchy.
+ * kobject_shadow_add - add an object to the hierarchy.
* @kobj: object.
* @shadow_parent: sysfs directory to add to.
*/
@@ -190,8 +190,8 @@ int kobject_shadow_add(struct kobject * kobj, struct dentry *shadow_parent)
list_add_tail(&kobj->entry,&kobj->kset->list);
spin_unlock(&kobj->kset->list_lock);
+ kobj->parent = parent;
}
- kobj->parent = parent;
error = create_dir(kobj, shadow_parent);
if (error) {
--
1.5.1.2
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists