Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Sep 2010 15:00:43 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r212736 - stable/8/sys/net
Message-ID:  <201009161500.o8GF0hKL094835@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Thu Sep 16 15:00:43 2010
New Revision: 212736
URL: http://svn.freebsd.org/changeset/base/212736

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

Modified:
  stable/8/sys/net/if_llatbl.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/net/if_llatbl.c
==============================================================================
--- stable/8/sys/net/if_llatbl.c	Thu Sep 16 14:55:22 2010	(r212735)
+++ stable/8/sys/net/if_llatbl.c	Thu Sep 16 15:00:43 2010	(r212736)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009161500.o8GF0hKL094835>