summaryrefslogtreecommitdiffstats
path: root/sys/net/if_ppp.c
diff options
context:
space:
mode:
authorchl <chl@openbsd.org>2008-09-17 20:10:37 +0000
committerchl <chl@openbsd.org>2008-09-17 20:10:37 +0000
commit1f54fc5c163b499abc0ff57341f45564fb4b276c (patch)
tree700b55c25dfde23a4bbbcd162576123d359e80f3 /sys/net/if_ppp.c
parentAlso update the NVIDIA PCI id for the i386 copy of this code. (diff)
downloadwireguard-openbsd-1f54fc5c163b499abc0ff57341f45564fb4b276c.tar.xz
wireguard-openbsd-1f54fc5c163b499abc0ff57341f45564fb4b276c.zip
remove dead stores and newly created unused variables.
fix potential use of uninitialized value in trunk_port_ioctl() function. Found by LLVM/Clang Static Analyzer. ok mpf@ henning@
Diffstat (limited to 'sys/net/if_ppp.c')
-rw-r--r--sys/net/if_ppp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c
index 1037cd3ad7e..c8175bf1511 100644
--- a/sys/net/if_ppp.c
+++ b/sys/net/if_ppp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ppp.c,v 1.50 2007/09/15 16:43:51 henning Exp $ */
+/* $OpenBSD: if_ppp.c,v 1.51 2008/09/17 20:10:37 chl Exp $ */
/* $NetBSD: if_ppp.c,v 1.39 1997/05/17 21:11:59 christos Exp $ */
/*
@@ -1051,12 +1051,12 @@ ppp_dequeue(sc)
if (protocol != PPP_LCP && protocol != PPP_CCP
&& sc->sc_xc_state && (sc->sc_flags & SC_COMP_RUN)) {
struct mbuf *mcomp = NULL;
- int slen, clen;
+ int slen;
slen = 0;
for (mp = m; mp != NULL; mp = mp->m_next)
slen += mp->m_len;
- clen = (*sc->sc_xcomp->compress)
+ (*sc->sc_xcomp->compress)
(sc->sc_xc_state, &mcomp, m, slen,
(sc->sc_flags & SC_CCP_UP ? sc->sc_if.if_mtu + PPP_HDRLEN : 0));
if (mcomp != NULL) {