commit | 8bf66b24cfcb71d6f3e33a0ebd119678823d7c70 | [log] [tgz] |
---|---|---|
author | Amitoj Kaur Chawla <amitoj1606@gmail.com> | Sat May 28 22:11:17 2016 +0530 |
committer | Brian Norris <computersforpeace@gmail.com> | Sat Jul 09 18:48:54 2016 -0700 |
tree | c559302ae7a4050576362dbdc77ec11cf522e92d | |
parent | b137aab438382fdadfe1272869357485af0252b4 [diff] |
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>