From: Sascha Wildner Date: Sat, 17 Mar 2012 11:03:49 +0000 (+0100) Subject: kernel/gre: Remove unused variables. X-Git-Tag: v3.2.0~1233 X-Git-Url: https://gitweb.dragonflybsd.org/~tuxillo/dragonfly.git/commitdiff_plain/f1276dcda2c3568cf57ac7d672d10fe5fa08f4b2 kernel/gre: Remove unused variables. --- diff --git a/sys/net/gre/if_gre.c b/sys/net/gre/if_gre.c index a91af3618e..d249853718 100644 --- a/sys/net/gre/if_gre.c +++ b/sys/net/gre/if_gre.c @@ -235,7 +235,6 @@ gre_output_serialized(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst, struct gre_softc *sc = ifp->if_softc; struct greip *gh; struct ip *ip; - u_char osrc; u_short etype = 0; struct mobile_h mob_h; @@ -260,7 +259,6 @@ gre_output_serialized(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst, gh = NULL; ip = NULL; - osrc = 0; if (ifp->if_bpf) { uint32_t af = dst->sa_family; diff --git a/sys/netinet/ip_gre.c b/sys/netinet/ip_gre.c index ea5622092c..b976f52076 100644 --- a/sys/netinet/ip_gre.c +++ b/sys/netinet/ip_gre.c @@ -204,7 +204,6 @@ gre_mobile_input(struct mbuf **mp, int *offp, int proto) struct ip *ip = mtod(m, struct ip *); struct mobip_h *mip = mtod(m, struct mobip_h *); struct gre_softc *sc; - u_char osrc = 0; int msiz, hlen; hlen = *offp; @@ -219,7 +218,6 @@ gre_mobile_input(struct mbuf **mp, int *offp, int proto) sc->sc_if.if_ibytes += m->m_pkthdr.len; if(ntohs(mip->mh.proto) & MOB_H_SBIT) { - osrc = 1; msiz = MOB_H_SIZ_L; mip->mi.ip_src.s_addr = mip->mh.osrc; } else {