about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-09-06 14:29:56 -0700
committerEric Wong <normalperson@yhbt.net>2009-09-06 14:31:36 -0700
commit2213d73a2d23bb39e8a4fa82a33d03daf4c39df2 (patch)
tree15d496fdbcc3410378b0de35ddf64f5423ad41b8
parent0e62a00e2b4821a647f382b1649f744f87f959fc (diff)
downloadunicorn-2213d73a2d23bb39e8a4fa82a33d03daf4c39df2.tar.gz
No need to add an extra check, even if it does avoid a
function call.
-rw-r--r--ext/unicorn_http/unicorn_http.rl3
1 files changed, 1 insertions, 2 deletions
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)