From e5bc0aa3c32b6fad8ec76e2c07716b46b1069df2 Mon Sep 17 00:00:00 2001 From: Robert Watson <rwatson@FreeBSD.org> Date: Sat, 14 Jan 2006 11:18:32 +0000 Subject: [PATCH] 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 --- sys/netinet/udp_usrreq.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 1e8fadb96c5c..0693a7eabe98 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 @@ udp_input(m, off) INP_INFO_RUNLOCK(&udbinfo); badunlocked: m_freem(m); - if (opts) - m_freem(opts); return; }