diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2017-08-14 11:01:57 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2017-08-14 11:02:07 +0300 |
commit | cff47a807e16265d495e877a8597d4e330a9071a (patch) | |
tree | 26df2c990ebdd21c1c25b946fe5b394854c6c78e /alloc.c | |
parent | 347c1f0d0b2be5c811e7449ae2afa1b1e2d42fcc (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.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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) |