Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304045
b: refs/heads/master
c: 6b96061
h: refs/heads/master
i:
  304043: 785951d
v: v3
  • Loading branch information
yan authored and Greg Kroah-Hartman committed Apr 23, 2012
1 parent 2f1ebb3 commit 3b1f713
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9169c01236ab29ce55c93aaf22ec6ecc65c46d1a
refs/heads/master: 6b9606106ba58d2bd80610f97e06fea58206b47c
12 changes: 5 additions & 7 deletions trunk/lib/kobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,11 @@ static int populate_dir(struct kobject *kobj)
static int create_dir(struct kobject *kobj)
{
int error = 0;
if (kobject_name(kobj)) {
error = sysfs_create_dir(kobj);
if (!error) {
error = populate_dir(kobj);
if (error)
sysfs_remove_dir(kobj);
}
error = sysfs_create_dir(kobj);
if (!error) {
error = populate_dir(kobj);
if (error)
sysfs_remove_dir(kobj);
}
return error;
}
Expand Down

0 comments on commit 3b1f713

Please sign in to comment.