]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: stream: remove a useless call to si_detach()
authorWilly Tarreau <w@1wt.eu>
Sun, 19 Jul 2015 15:57:02 +0000 (17:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 19 Jul 2015 15:57:02 +0000 (17:57 +0200)
It's pointless to call si_detach() after si_reset() since it does
nothing due to si->end being NULL.

src/stream.c

index 0cd5bb63e00660776387998f6c518260e11f979f..d7b8e9f5d2a9d2fa5ce3b4262d5f88a652e828f2 100644 (file)
@@ -160,7 +160,6 @@ struct stream *stream_new(struct session *sess, struct task *t, enum obj_type *o
         * callbacks will be initialized before attempting to connect.
         */
        si_reset(&s->si[1]);
-       si_detach(&s->si[1]);
 
        if (likely(sess->fe->options2 & PR_O2_INDEPSTR))
                s->si[1].flags |= SI_FL_INDEP_STR;