summaryrefslogtreecommitdiffstats
path: root/fs/configfs/inode.c
diff options
context:
space:
mode:
authorEric Sesterhenn / snakebyte2006-01-27 10:32:24 +0100
committerMark Fasheh2006-02-03 23:03:09 +0100
commit1a1974fd4533afdb73873cdacb942d9a79ff7c9b (patch)
tree2ca6e62b007f54a4b4d755bb98ad9692e4547395 /fs/configfs/inode.c
parentconfigfs: Add permission and ownership to configfs objects. (diff)
downloadkernel-qcow2-linux-1a1974fd4533afdb73873cdacb942d9a79ff7c9b.tar.gz
kernel-qcow2-linux-1a1974fd4533afdb73873cdacb942d9a79ff7c9b.tar.xz
kernel-qcow2-linux-1a1974fd4533afdb73873cdacb942d9a79ff7c9b.zip
[PATCH] BUG_ON() Conversion in fs/configfs/
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: Joel Becker <joel.becker@oracle.com> Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/configfs/inode.c')
-rw-r--r--fs/configfs/inode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/configfs/inode.c b/fs/configfs/inode.c
index 737842f2764b..c153bd9534cb 100644
--- a/fs/configfs/inode.c
+++ b/fs/configfs/inode.c
@@ -196,8 +196,7 @@ const unsigned char * configfs_get_name(struct configfs_dirent *sd)
{
struct configfs_attribute *attr;
- if (!sd || !sd->s_element)
- BUG();
+ BUG_ON(!sd || !sd->s_element);
/* These always have a dentry, so use that */
if (sd->s_type & (CONFIGFS_DIR | CONFIGFS_ITEM_LINK))