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
This commit is contained in:
parent
99425c6e7a
commit
e5bc0aa3c3
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user