diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-04-01 01:18:38 +0200 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-04-01 01:18:38 +0200 |
commit | 99cee0cd7560fc4e7f3646ee18d90e328bd1cb32 (patch) | |
tree | 6c36d8c3b7071b2fad88e4127ef02ac8d374b0db /fs/sysfs/inode.c | |
parent | 5df0d312413d920628f149421d7b0a3994684620 (diff) | |
download | linux-99cee0cd7560fc4e7f3646ee18d90e328bd1cb32.tar.gz linux-99cee0cd7560fc4e7f3646ee18d90e328bd1cb32.tar.bz2 linux-99cee0cd7560fc4e7f3646ee18d90e328bd1cb32.zip |
BUG_ON() Conversion in fs/sysfs/
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>
Diffstat (limited to 'fs/sysfs/inode.c')
-rw-r--r-- | fs/sysfs/inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/sysfs/inode.c b/fs/sysfs/inode.c index 4c29ac41ac3e..f0b347bd12ca 100644 --- 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: |