diff options
Diffstat (limited to 'fs/configfs/inode.c')
-rw-r--r-- | fs/configfs/inode.c | 3 |
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) | |||
196 | { | 196 | { |
197 | struct configfs_attribute *attr; | 197 | struct configfs_attribute *attr; |
198 | 198 | ||
199 | if (!sd || !sd->s_element) | 199 | BUG_ON(!sd || !sd->s_element); |
200 | BUG(); | ||
201 | 200 | ||
202 | /* These always have a dentry, so use that */ | 201 | /* These always have a dentry, so use that */ |
203 | if (sd->s_type & (CONFIGFS_DIR | CONFIGFS_ITEM_LINK)) | 202 | if (sd->s_type & (CONFIGFS_DIR | CONFIGFS_ITEM_LINK)) |