summaryrefslogtreecommitdiffstats
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2006-01-14 11:18:32 +0000
committerrwatson <rwatson@FreeBSD.org>2006-01-14 11:18:32 +0000
commit01ba13c93ee7336daa7b114c6791cadb58f1785a (patch)
tree9129be079dbd506c81a3cacc3fb0af7d93bb4c42 /sys/netinet/udp_usrreq.c
parented01f537fc633dab8d24be68e14a722dc9ce15d9 (diff)
downloadFreeBSD-src-01ba13c93ee7336daa7b114c6791cadb58f1785a.zip
FreeBSD-src-01ba13c93ee7336daa7b114c6791cadb58f1785a.tar.gz
Remove dead code: 'opts' is not used in udp_append(), only in udp_input(),
so no need to assign it to NULL or conditionally free it. Found with: Coverity Prevent(tm) MFC after: 3 days
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index 1e8fadb..0693a7e 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -151,7 +151,6 @@ udp_input(m, off)
register struct ip *ip;
register struct udphdr *uh;
register struct inpcb *inp;
- struct mbuf *opts = 0;
int len;
struct ip save_ip;
struct sockaddr_in udp_in;
@@ -399,8 +398,6 @@ badheadlocked:
INP_INFO_RUNLOCK(&udbinfo);
badunlocked:
m_freem(m);
- if (opts)
- m_freem(opts);
return;
}
OpenPOWER on IntegriCloud