nd6: simplify code
We are taking the same actions in both cases of the branch inside the block. Simplify that code as the extra branch is not needed. MFC after: 3 weeks Sponsored by: Netflix
This commit is contained in:
parent
22d13bfd34
commit
e20b5bc485
@ -2328,13 +2328,7 @@ nd6_resolve_slow(struct ifnet *ifp, int flags, struct mbuf *m,
|
||||
}
|
||||
}
|
||||
if (lle == NULL) {
|
||||
if (!(ND_IFINFO(ifp)->flags & ND6_IFF_PERFORMNUD)) {
|
||||
m_freem(m);
|
||||
return (ENOBUFS);
|
||||
}
|
||||
|
||||
if (m != NULL)
|
||||
m_freem(m);
|
||||
m_freem(m);
|
||||
return (ENOBUFS);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user