tools/virtio/ringtest: Remove bogus definition of BUG_ON()
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Mon, 18 Mar 2019 16:27:34 +0000 (17:27 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 12 May 2019 17:11:35 +0000 (13:11 -0400)
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 <j.neuschaefer@gmx.net>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tools/virtio/ringtest/ptr_ring.c

index 2d566fbd236bed5d3f7d600e7d4bde628f2df8ae..c9b26335f891452c168d00487ff92634a9ac6a14 100644 (file)
@@ -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;