Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Unity-Technologies/bdwgc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2017-08-14 11:01:57 +0300
committerIvan Maidanski <ivmai@mail.ru>2017-08-14 11:02:07 +0300
commitcff47a807e16265d495e877a8597d4e330a9071a (patch)
tree26df2c990ebdd21c1c25b946fe5b394854c6c78e /alloc.c
parent347c1f0d0b2be5c811e7449ae2afa1b1e2d42fcc (diff)
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).
Diffstat (limited to 'alloc.c')
-rw-r--r--alloc.c2
1 files changed, 0 insertions, 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)