From 939e076fdc45e80cf6a42e68d29eecc6cdf616b2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 28 Mar 2024 13:01:36 +1100 Subject: [PATCH] Cleanup: remove redundant assignment & null check --- source/blender/blenlib/intern/BLI_memarena.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/blender/blenlib/intern/BLI_memarena.c b/source/blender/blenlib/intern/BLI_memarena.c index 6f36db18095..c5d868de1b0 100644 --- a/source/blender/blenlib/intern/BLI_memarena.c +++ b/source/blender/blenlib/intern/BLI_memarena.c @@ -191,8 +191,7 @@ void BLI_memarena_merge(MemArena *ma_dst, MemArena *ma_src) /* Loop over `ma_src` instead of `ma_dst` since it's likely the destination is larger * when used for accumulating from multiple sources. */ struct MemBuf *mb_src = ma_src->bufs; - mb_src = ma_src->bufs; - while (mb_src && mb_src->next) { + while (mb_src->next) { mb_src = mb_src->next; } mb_src->next = ma_dst->bufs->next;