From: phk Date: Tue, 25 Sep 2007 07:33:07 +0000 (+0000) Subject: Unnecessary check X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57d36665fe30f0bb8094853c4537300ae9ab8c16;p=varnish Unnecessary check git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2027 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_session.c b/varnish-cache/bin/varnishd/cache_session.c index 5619a204..1ce8b736 100644 --- a/varnish-cache/bin/varnishd/cache_session.c +++ b/varnish-cache/bin/varnishd/cache_session.c @@ -296,8 +296,6 @@ SES_New(struct sockaddr *addr, unsigned len) sm->workspace = u; VSL_stats->n_sess_mem++; } - if (sm == NULL) - return (NULL); CHECK_OBJ_NOTNULL(sm, SESSMEM_MAGIC); VSL_stats->n_sess++; sp = &sm->sess;