diff options
| author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | 2019-03-18 12:27:34 -0400 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2019-05-12 13:11:35 -0400 |
| commit | d63031bb0fc0314541340f08a0c35c40216ca72a (patch) | |
| tree | f0a96be9c3fb3613c23ef76466e21ee7d81f8a92 | |
| parent | df0bfe7501e9319546ea380d39674a4179e059c3 (diff) | |
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.
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
| -rw-r--r-- | tools/virtio/ringtest/ptr_ring.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/virtio/ringtest/ptr_ring.c b/tools/virtio/ringtest/ptr_ring.c index 2d566fbd236b..c9b26335f891 100644 --- a/tools/virtio/ringtest/ptr_ring.c +++ b/tools/virtio/ringtest/ptr_ring.c | |||
| @@ -18,7 +18,6 @@ | |||
| 18 | #define ALIGN(x, a) (((x) + (a) - 1) / (a) * (a)) | 18 | #define ALIGN(x, a) (((x) + (a) - 1) / (a) * (a)) |
| 19 | #define SIZE_MAX (~(size_t)0) | 19 | #define SIZE_MAX (~(size_t)0) |
| 20 | #define KMALLOC_MAX_SIZE SIZE_MAX | 20 | #define KMALLOC_MAX_SIZE SIZE_MAX |
| 21 | #define BUG_ON(x) assert(x) | ||
| 22 | 21 | ||
| 23 | typedef pthread_spinlock_t spinlock_t; | 22 | typedef pthread_spinlock_t spinlock_t; |
| 24 | 23 | ||
