From: Himangi Saraogi Date: Fri, 8 Aug 2014 21:22:44 +0000 (-0700) Subject: kfifo: use BUG_ON X-Git-Tag: omap-for-v3.17/fixes-against-rc2~116^2~99 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89b3ac63013e64621369f619fe732b629879c671;p=pandora-kernel.git kfifo: use BUG_ON Use BUG_ON(x) rather than if(x) BUG(); The semantic patch that fixes this problem is as follows: // @@ identifier x; @@ -if (!x) BUG(); +BUG_ON(!x); // Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall Cc: Stefani Seibold Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed