summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1996-04-25 02:34:37 +0000
committerdg <dg@FreeBSD.org>1996-04-25 02:34:37 +0000
commitc401fbe8f3c23f613e656100da5b71ca335bd9a8 (patch)
treeb4a7812b78b837025bf1cf565e513d440b31f759 /sys/net
parent84accdee09f66de5bd4eb1ec224ca383fbd65057 (diff)
downloadFreeBSD-src-c401fbe8f3c23f613e656100da5b71ca335bd9a8.zip
FreeBSD-src-c401fbe8f3c23f613e656100da5b71ca335bd9a8.tar.gz
Regardless of whether or not the check for IPv4 is useful, we certainly
don't need to assign the "ip" pointer twice.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_sl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_sl.c b/sys/net/if_sl.c
index 621283b..18e7f40 100644
--- a/sys/net/if_sl.c
+++ b/sys/net/if_sl.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)if_sl.c 8.6 (Berkeley) 2/1/94
- * $Id: if_sl.c,v 1.37 1996/04/07 17:39:09 bde Exp $
+ * $Id: if_sl.c,v 1.38 1996/04/24 15:44:34 phk Exp $
*/
/*
@@ -561,8 +561,8 @@ slstart(tp)
} while (m1 = m1->m_next);
}
#endif
- if ((ip = mtod(m, struct ip *))->ip_v == IPVERSION) &&
- (ip = mtod(m, struct ip *))->ip_p == IPPROTO_TCP) {
+ ip = mtod(m, struct ip *);
+ if (ip->ip_v == IPVERSION && ip->ip_p == IPPROTO_TCP) {
if (sc->sc_if.if_flags & SC_COMPRESS)
*mtod(m, u_char *) |= sl_compress_tcp(m, ip,
&sc->sc_comp, 1);
OpenPOWER on IntegriCloud