From 2213d73a2d23bb39e8a4fa82a33d03daf4c39df2 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 6 Sep 2009 14:29:56 -0700 Subject: http: rb_gc_mark already ignores immediates No need to add an extra check, even if it does avoid a function call. --- ext/unicorn_http/unicorn_http.rl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext') diff --git a/ext/unicorn_http/unicorn_http.rl b/ext/unicorn_http/unicorn_http.rl index 94b5355..f296637 100644 --- a/ext/unicorn_http/unicorn_http.rl +++ b/ext/unicorn_http/unicorn_http.rl @@ -426,8 +426,7 @@ static void hp_mark(void *ptr) { struct http_parser *hp = ptr; - if (hp->cont) - rb_gc_mark(hp->cont); + rb_gc_mark(hp->cont); } static VALUE HttpParser_alloc(VALUE klass) -- cgit v1.2.3-24-ge0c7