summaryrefslogtreecommitdiffstats
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>2016-05-28 22:11:17 +0530
committerBrian Norris <computersforpeace@gmail.com>2016-07-09 18:48:54 -0700
commit8bf66b24cfcb71d6f3e33a0ebd119678823d7c70 (patch)
treec559302ae7a4050576362dbdc77ec11cf522e92d /include/linux/debugobjects.h
parentb137aab438382fdadfe1272869357485af0252b4 (diff)
downloadcachepc-linux-8bf66b24cfcb71d6f3e33a0ebd119678823d7c70.tar.gz
cachepc-linux-8bf66b24cfcb71d6f3e33a0ebd119678823d7c70.zip
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>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions