diff options
author | dg <dg@FreeBSD.org> | 1996-04-25 02:34:37 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1996-04-25 02:34:37 +0000 |
commit | c401fbe8f3c23f613e656100da5b71ca335bd9a8 (patch) | |
tree | b4a7812b78b837025bf1cf565e513d440b31f759 /sys/net/if_sl.c | |
parent | 84accdee09f66de5bd4eb1ec224ca383fbd65057 (diff) | |
download | FreeBSD-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/if_sl.c')
-rw-r--r-- | sys/net/if_sl.c | 6 |
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); |