From 02f37cb9da36bcc52ff53c81c6609a006e2da877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 17 May 2021 15:43:54 -0400 Subject: [PATCH] util/idalloc: reserving an ID that already exists should be no-op Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/util/u_idalloc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/util/u_idalloc.c b/src/util/u_idalloc.c index 6a59fa22a1d..c85fb670b65 100644 --- a/src/util/u_idalloc.c +++ b/src/util/u_idalloc.c @@ -99,7 +99,6 @@ util_idalloc_reserve(struct util_idalloc *buf, unsigned id) { if (id / 32 >= buf->num_elements) util_idalloc_resize(buf, (id / 32 + 1) * 2); - assert((buf->data[id / 32] & (1u << (id % 32))) == 0); buf->data[id / 32] |= 1u << (id % 32); }