Searched hist:"8 bf66b24cfcb71d6f3e33a0ebd119678823d7c70" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/mtd/ |
H A D | ssfdc.c | diff 8bf66b24cfcb71d6f3e33a0ebd119678823d7c70 Sat May 28 18:41:17 CEST 2016 Amitoj Kaur Chawla <amitoj1606@gmail.com> mtd: Replace if and BUG with BUG_ON
Replace if condition and BUG() with a BUG_ON having the conditional expression of the if statement as argument.
The Coccinelle semantic patch used to make this change is as follows: @@ expression E,f; @@
( if (<+... f(...) ...+>) { BUG(); } | - if (E) { BUG(); } + BUG_ON(E); )
Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
|