Date: Fri, 15 Nov 2019 13:45:39 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r354731 - head/sys/netinet6 Message-ID: <201911151345.xAFDjdHP015615@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bz Date: Fri Nov 15 13:45:38 2019 New Revision: 354731 URL: https://svnweb.freebsd.org/changeset/base/354731 Log: 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 Modified: head/sys/netinet6/nd6.c Modified: head/sys/netinet6/nd6.c ============================================================================== --- head/sys/netinet6/nd6.c Fri Nov 15 11:54:51 2019 (r354730) +++ head/sys/netinet6/nd6.c Fri Nov 15 13:45:38 2019 (r354731) @@ -2328,13 +2328,7 @@ nd6_resolve_slow(struct ifnet *ifp, int flags, struct } } 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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911151345.xAFDjdHP015615>