From cff47a807e16265d495e877a8597d4e330a9071a Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Mon, 14 Aug 2017 11:01:57 +0300 Subject: [PATCH] Remove redundant check that clear_fl_marks argument is non-null (code refactoring) * alloc.c (GC_clear_fl_marks): Do not check that q is not null (because it is checked by the caller). --- alloc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/alloc.c b/alloc.c index 0f18301e..b038940e 100644 --- a/alloc.c +++ b/alloc.c @@ -846,7 +846,6 @@ GC_INNER void GC_set_fl_marks(ptr_t q) /* Decrement GC_bytes_found by number of bytes on free list. */ STATIC void GC_clear_fl_marks(ptr_t q) { - if (q != NULL) { struct hblk *h = HBLKPTR(q); struct hblk *last_h = h; hdr *hhdr = HDR(h); @@ -880,7 +879,6 @@ STATIC void GC_clear_fl_marks(ptr_t q) sz = hhdr->hb_sz; } } - } } #if defined(GC_ASSERTIONS) && defined(THREADS) && defined(THREAD_LOCAL_ALLOC) -- 2.40.0