svn commit: r210533 - head/sys/net

Gleb Smirnoff glebius at FreeBSD.org
Tue Jul 27 11:56:50 UTC 2010


Author: glebius
Date: Tue Jul 27 11:56:49 2010
New Revision: 210533
URL: http://svn.freebsd.org/changeset/base/210533

Log:
  Don't check malloc(M_WAITOK) result.

Modified:
  head/sys/net/if_llatbl.c

Modified: head/sys/net/if_llatbl.c
==============================================================================
--- head/sys/net/if_llatbl.c	Tue Jul 27 11:54:01 2010	(r210532)
+++ head/sys/net/if_llatbl.c	Tue Jul 27 11:56:49 2010	(r210533)
@@ -234,8 +234,6 @@ lltable_init(struct ifnet *ifp, int af)
 	register int i;
 
 	llt = malloc(sizeof(struct lltable), M_LLTABLE, M_WAITOK);
-	if (llt == NULL)
-		return (NULL);
 
 	llt->llt_af = af;
 	llt->llt_ifp = ifp;


More information about the svn-src-all mailing list