]> Pileus Git - ~andy/linux/blobdiff - fs/configfs/inode.c
Pull sn2-mmio-writes into release branch
[~andy/linux] / fs / configfs / inode.c
index 737842f2764b5ce3b27fbc2fee53b91b6f06d7b9..c153bd9534cb6d72066094c8110ce0f35fec3ff3 100644 (file)
@@ -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))