From: Himangi Saraogi Date: Sun, 20 Jul 2014 21:36:35 +0000 (+0530) Subject: Coccinelle: Script to replace if and BUG with BUG_ON X-Git-Tag: omap-for-v3.17/fixes-against-rc2~60^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5be1df668a40cc0a49bc26023fffc537fae1778e;p=pandora-kernel.git Coccinelle: Script to replace if and BUG with BUG_ON This script detects cases where BUG() follows an if condition on an expression and replaces the if condition and BUG() with a BUG_ON having the conditional expression of the if statement as argument. Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall Signed-off-by: Michal Marek --- Reading git-diff-tree failed