~ chicken-core (chicken-5) d9095a50eceaf79c2981145dc57efd63b1b47248
commit d9095a50eceaf79c2981145dc57efd63b1b47248 Author: Evan Hanson <evhan@foldling.org> AuthorDate: Sun Sep 17 17:30:18 2017 +1200 Commit: Peter Bex <peter@more-magic.net> CommitDate: Sun Sep 17 12:20:57 2017 +0200 Drop unnecessary check for NULL trace buffer keys Signed-off-by: Peter Bex <peter@more-magic.net> diff --git a/runtime.c b/runtime.c index 42504d17..93460208 100644 --- a/runtime.c +++ b/runtime.c @@ -4374,10 +4374,8 @@ static void take_profile_sample() tb = trace_buffer_top - 1; } - key = tb->raw; - if (key == NULL) return; /* May happen while in C_trace() */ - /* We could also just hash the pointer but that's a bit trickier */ + key = tb->raw; bp = profile_table + hash_string(C_strlen(key), key, PROFILE_TABLE_SIZE, 0, 0); b = *bp;Trap