dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Eric Sesterhenn 2006-04-01 01:18:38 +02:00 committed by Adrian Bunk
parent 5df0d31241
commit 99cee0cd75
1 changed files with 1 additions and 2 deletions

View File

@ -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: