aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorHimangi Saraogi <himangi774@gmail.com>2014-08-08 14:22:44 -0700
committerMister Oyster <oysterized@gmail.com>2017-04-11 10:59:27 +0200
commit0be4b49a3513dec3b927592c6f8077f9db23fbc6 (patch)
tree9949b12d03d3e353dfd5c6f1138960f0be30962e /include/linux
parent6119338a612b8303db89f46721dee61bca99bb98 (diff)
kfifo: use BUG_ON
Use BUG_ON(x) rather than if(x) BUG(); The semantic patch that fixes this problem is as follows: // <smpl> @@ identifier x; @@ -if (!x) BUG(); +BUG_ON(!x); // </smpl> Signed-off-by: Himangi Saraogi <himangi774@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Cc: Stefani Seibold <stefani@seibold.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions