Julia Lawall cf3ace79c0 KVM: VMX: 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 <julia@diku.dk>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2011-09-25 19:18:01 +03:00
..
2010-10-24 10:53:14 +02:00
2011-08-16 19:00:41 +03:00
2011-07-26 16:49:47 -07:00
2011-01-12 11:29:08 +02:00
2011-07-24 11:50:33 +03:00
2011-09-25 19:13:25 +03:00
2011-07-24 11:50:40 +03:00
2011-07-24 11:50:41 +03:00
2011-07-26 16:49:47 -07:00
2011-09-25 19:18:01 +03:00