From 4f483122f38046a30b6e6ec15265bffb3ac9ee25 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Mon, 7 Jan 2013 10:43:31 +0100 Subject: [PATCH] kernel/tcp_{input,output}: Remove some unused variables. --- sys/netinet/tcp_input.c | 3 --- sys/netinet/tcp_output.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 2c9bdbcaa8..1dacaff7d2 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -624,9 +624,6 @@ tcp6_input(struct mbuf **mp, int *offp, int proto) */ ia6 = ip6_getdstifaddr(m); if (ia6 && (ia6->ia6_flags & IN6_IFF_ANYCAST)) { - struct ip6_hdr *ip6; - - ip6 = mtod(m, struct ip6_hdr *); icmp6_error(m, ICMP6_DST_UNREACH, ICMP6_DST_UNREACH_ADDR, offsetof(struct ip6_hdr, ip6_dst)); return (IPPROTO_DONE); diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c index a99cbbdeb6..82e9741931 100644 --- a/sys/netinet/tcp_output.c +++ b/sys/netinet/tcp_output.c @@ -174,7 +174,6 @@ tcp_output(struct tcpcb *tp) #endif struct mbuf *m; struct ip *ip; - struct ipovly *ipov; struct tcphdr *th; u_char opt[TCP_MAXOLEN]; unsigned int ipoptlen, optlen, hdrlen; @@ -255,7 +254,6 @@ tcp_output(struct tcpcb *tp) again: m = NULL; ip = NULL; - ipov = NULL; th = NULL; ip6 = NULL; @@ -915,7 +913,6 @@ send: tcp_fillheaders(tp, ip6, th, use_tso); } else { ip = mtod(m, struct ip *); - ipov = (struct ipovly *)ip; th = (struct tcphdr *)(ip + 1); /* this picks up the pseudo header (w/o the length) */ tcp_fillheaders(tp, ip, th, use_tso); -- 2.41.0