From: Eric Sesterhenn Date: Tue, 3 Oct 2006 21:37:55 +0000 (+0200) Subject: BUG_ON conversion for fs/xfs/ X-Git-Tag: upstream/snapshot3+hdmi~37227^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ab5aa911a5b5d7c721436bce8709202b707a361;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git BUG_ON conversion for fs/xfs/ This patch converts two if () BUG(); construct to BUG_ON(); which occupies less space, uses unlikely and is safer when BUG() is disabled. Signed-off-by: Eric Sesterhenn Signed-off-by: Adrian Bunk --- diff --git a/fs/xfs/support/debug.c b/fs/xfs/support/debug.c index 36fbecc..c75f683 100644 --- a/fs/xfs/support/debug.c +++ b/fs/xfs/support/debug.c @@ -53,8 +53,7 @@ cmn_err(register int level, char *fmt, ...) va_end(ap); spin_unlock_irqrestore(&xfs_err_lock,flags); - if (level == CE_PANIC) - BUG(); + BUG_ON(level == CE_PANIC); } void @@ -72,8 +71,7 @@ icmn_err(register int level, char *fmt, va_list ap) strcat(message, "\n"); spin_unlock_irqrestore(&xfs_err_lock,flags); printk("%s%s", err_level[level], message); - if (level == CE_PANIC) - BUG(); + BUG_ON(level == CE_PANIC); } void