Remove useless NULL check
Coverity points out that we've already dereferenced m by the time we check, so there's no reason to keep the check. Moreover, it's safe to pass NULL to m_freem() anyway. CID: 1019092
This commit is contained in:
parent
324cdd9320
commit
200424235e
@ -528,8 +528,7 @@ udp6_input(struct mbuf **mp, int *offp, int proto)
|
||||
return (IPPROTO_DONE);
|
||||
|
||||
badunlocked:
|
||||
if (m)
|
||||
m_freem(m);
|
||||
m_freem(m);
|
||||
*mp = NULL;
|
||||
return (IPPROTO_DONE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user