aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-04-01 01:18:38 +0200
committerAdrian Bunk <bunk@stusta.de>2006-04-01 01:18:38 +0200
commit99cee0cd7560fc4e7f3646ee18d90e328bd1cb32 (patch)
tree6c36d8c3b7071b2fad88e4127ef02ac8d374b0db /fs/sysfs
parent5df0d312413d920628f149421d7b0a3994684620 (diff)
downloadkernel_samsung_tuna-99cee0cd7560fc4e7f3646ee18d90e328bd1cb32.zip
kernel_samsung_tuna-99cee0cd7560fc4e7f3646ee18d90e328bd1cb32.tar.gz
kernel_samsung_tuna-99cee0cd7560fc4e7f3646ee18d90e328bd1cb32.tar.bz2
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')
-rw-r--r--fs/sysfs/inode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/sysfs/inode.c b/fs/sysfs/inode.c
index 4c29ac4..f0b347b 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: