Skip to content

Commit

Permalink
tools/virtio/ringtest: Remove bogus definition of BUG_ON()
Browse files Browse the repository at this point in the history
BUG_ON(x) should raise an error if x is true, but assert(x) raises an
error if x is false. Remove this bogus definition of BUG_ON(), which
isn't used anyway.

Signed-off-by: Jonathan Neuschäfer <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
  • Loading branch information
neuschaefer authored and mstsirkin committed May 12, 2019
1 parent df0bfe7 commit d63031b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tools/virtio/ringtest/ptr_ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#define ALIGN(x, a) (((x) + (a) - 1) / (a) * (a))
#define SIZE_MAX (~(size_t)0)
#define KMALLOC_MAX_SIZE SIZE_MAX
#define BUG_ON(x) assert(x)

typedef pthread_spinlock_t spinlock_t;

Expand Down

0 comments on commit d63031b

Please sign in to comment.