git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41fc1c2
)
sysfs: make sysfs_add_one() automatically check for duplicate entry
author
Tejun Heo
<htejun@gmail.com>
Thu, 2 Aug 2007 12:38:03 +0000
(21:38 +0900)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 12 Oct 2007 21:51:04 +0000
(14:51 -0700)
Make sysfs_add_one() check for duplicate entry and return -EEXIST if
such entry exists. This simplifies node addition code a bit.
This patch doesn't introduce any noticeable behavior change.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
No differences found