commit | 89b3ac63013e64621369f619fe732b629879c671 | [log] [tgz] |
---|---|---|
author | Himangi Saraogi <himangi774@gmail.com> | Fri Aug 08 14:22:44 2014 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Fri Aug 08 15:57:25 2014 -0700 |
tree | 0f8c23eec330727b2208fe1b0965eb6de9a8cdbb | |
parent | 998d6688fb399ab313dcd6f24d1196e3aaa8578c [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>