]> err.no Git - varnish/commitdiff
Unnecessary check
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 25 Sep 2007 07:33:07 +0000 (07:33 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 25 Sep 2007 07:33:07 +0000 (07:33 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2027 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_session.c

index 5619a2045e284363f28c7bbd8e675b4fbe67c2c6..1ce8b736c1e82368bdab5a035bb588e24917cc23 100644 (file)
@@ -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;