You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[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>
This commit is contained in:
committed by
Mark Fasheh
parent
3d0f89bb16
commit
1a1974fd45
+1
-2
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user