svn commit: r354731 - head/sys/netinet6

Bjoern A. Zeeb bz at FreeBSD.org
Fri Nov 15 13:45:39 UTC 2019


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);
 	}
 


More information about the svn-src-head mailing list