projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5df0d31
)
BUG_ON() Conversion in fs/sysfs/
author
Eric Sesterhenn
<snakebyte@gmx.de>
Fri, 31 Mar 2006 23:18:38 +0000
(
01:18
+0200)
committer
Adrian Bunk
<bunk@stusta.de>
Fri, 31 Mar 2006 23:18:38 +0000
(
01:18
+0200)
this changes if() BUG(); constructs to BUG_ON() which is
cleaner, contains unlikely() and can better optimized away.
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
fs/sysfs/inode.c
patch
|
blob
|
history
diff --git
a/fs/sysfs/inode.c
b/fs/sysfs/inode.c
index 4c29ac41ac3ec050f9f680118df5ab5aadf5a12a..f0b347bd12ca52d6636b2cadae31a7f45f2067a7 100644
(file)
--- a/
fs/sysfs/inode.c
+++ b/
fs/sysfs/inode.c
@@
-175,8
+175,7
@@
const unsigned char * sysfs_get_name(struct sysfs_dirent *sd)
struct bin_attribute * bin_attr;
struct sysfs_symlink * sl;
- if (!sd || !sd->s_element)
- BUG();
+ BUG_ON(!sd || !sd->s_element);
switch (sd->s_type) {
case SYSFS_DIR: