|
@@ -196,8 +196,7 @@ const unsigned char * configfs_get_name(struct configfs_dirent *sd)
|
|
{
|
|
{
|
|
struct configfs_attribute *attr;
|
|
struct configfs_attribute *attr;
|
|
|
|
|
|
- if (!sd || !sd->s_element)
|
|
|
|
- BUG();
|
|
|
|
|
|
+ BUG_ON(!sd || !sd->s_element);
|
|
|
|
|
|
/* These always have a dentry, so use that */
|
|
/* These always have a dentry, so use that */
|
|
if (sd->s_type & (CONFIGFS_DIR | CONFIGFS_ITEM_LINK))
|
|
if (sd->s_type & (CONFIGFS_DIR | CONFIGFS_ITEM_LINK))
|