Skip to contentSkip to conversation

tools/virtio/ringtest: Remove bogus definition of BUG_ON()

PATCH RESEND New Jonathan Neuschäfer 1 participant 1 message Mar 18, 2019 virtio core

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 tools/virtio/ringtest: Remove bogus definition of BUG_ON()

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.

---

Previous copy of v1:
https://lore.kernel.org/lkml/[email protected]/

---
 tools/virtio/ringtest/ptr_ring.c | 1 -
 1 file changed, 1 deletion(-)
tools/virtio/ringtest/ptr_ring.c +0 -1
index 2d566fbd236b..c9b26335f891 100644
@@ -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;
 
Signature · 1 line
2.20.1