diff options
| author | Julia Lawall <[email protected]> | 2011-08-02 10:35:04 +0000 |
|---|---|---|
| committer | Chris Metcalf <[email protected]> | 2011-08-02 20:26:59 +0000 |
| commit | d1afa65ca59d4e6a5f1a8c1ab9bfa73f2fa8b777 (patch) | |
| tree | 344d0a636d63614cf5cb2a85a2a7a2e37207d54a /lib/fault-inject.c | |
| parent | Merge tag 'v3.0' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/li... (diff) | |
| download | kernel-d1afa65ca59d4e6a5f1a8c1ab9bfa73f2fa8b777.tar.gz kernel-d1afa65ca59d4e6a5f1a8c1ab9bfa73f2fa8b777.zip | |
arch/tile/mm/init.c: trivial: use BUG_ON
Use BUG_ON(x) rather than if(x) BUG();
The semantic patch that fixes this problem is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@ identifier x; @@
-if (x) BUG();
+BUG_ON(x);
@@ identifier x; @@
-if (!x) BUG();
+BUG_ON(!x);
// </smpl>
Signed-off-by: Julia Lawall <[email protected]>
Signed-off-by: Chris Metcalf <[email protected]>
Diffstat (limited to 'lib/fault-inject.c')
0 files changed, 0 insertions, 0 deletions
