File 3672-erts-Simplify-complex-ASSERT.patch of Package erlang

From 7866fd7c086f4e63a7cb3940adbf59937d2342ee Mon Sep 17 00:00:00 2001
From: Sverker Eriksson <sverker@erlang.org>
Date: Mon, 23 Aug 2021 20:53:46 +0200
Subject: [PATCH 2/4] erts: Simplify complex ASSERT

---
 erts/emulator/beam/erl_gc.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/erts/emulator/beam/erl_gc.c b/erts/emulator/beam/erl_gc.c
index ec66d0c3bb..07a7b6c9e8 100644
--- a/erts/emulator/beam/erl_gc.c
+++ b/erts/emulator/beam/erl_gc.c
@@ -2811,11 +2811,7 @@ link_live_proc_bin(struct shrink_cand_data *shrink,
 
     *currpp = pbp->next;
     if (pbp->flags & (PB_ACTIVE_WRITER|PB_IS_WRITABLE)) {
-	ASSERT(((pbp->flags & (PB_ACTIVE_WRITER|PB_IS_WRITABLE))
-		== (PB_ACTIVE_WRITER|PB_IS_WRITABLE))
-	       || ((pbp->flags & (PB_ACTIVE_WRITER|PB_IS_WRITABLE))
-		   == PB_IS_WRITABLE));
-
+	ASSERT(pbp->flags & PB_IS_WRITABLE);
 
 	if (pbp->flags & PB_ACTIVE_WRITER) {
             pbp->flags &= ~PB_ACTIVE_WRITER;
-- 
2.31.1

openSUSE Build Service is sponsored by