BUG_ON() Conversion in fs/sysfs/
Subsystems (2)
PATCH 9/12 BUG_ON() Conversion in fs/sysfs/
hi,
this changes if() BUG(); constructs to BUG_ON() which is cleaner, contains unlikely() and can better optimized away.
Signed-off-by Eric Sesterhenn <[email protected]>
fs/sysfs/inode.c renamed from fs/sysfs/inode.c.orig +1 -2
@@ -176,8 +176,7 @@ const unsigned char * sysfs_get_name(strstruct bin_attribute * bin_attr;struct sysfs_symlink * sl; -if (!sd || !sd->s_element) -BUG (); +BUG_ON (!sd || !sd->s_element);switch (sd->s_type) {case SYSFS_DIR :
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors