syncache: Avoid unnecessary tcpcb checking during syncache dropping
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 20 May 2013 13:55:41 +0000 (21:55 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 20 May 2013 13:55:41 +0000 (21:55 +0800)
sys/netinet/tcp_syncache.c

index c12da3a..089c5e9 100644 (file)
@@ -464,8 +464,7 @@ syncache_drop(struct syncache *sc, struct syncache_head *sch)
        /*
         * Cleanup
         */
-       if (sc->sc_tp)
-               sc->sc_tp = NULL;
+       sc->sc_tp = NULL;
 
        /*
         * Remove the entry from the syncache timer/timeout queue.  Note