From owner-svn-src-all@FreeBSD.ORG Sun Sep 30 09:26:28 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 545C51065670; Sun, 30 Sep 2012 09:26:27 +0000 (UTC) (envelope-from kevlo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3FA098FC0C; Sun, 30 Sep 2012 09:26:27 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q8U9QRA8003071; Sun, 30 Sep 2012 09:26:27 GMT (envelope-from kevlo@svn.freebsd.org) Received: (from kevlo@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q8U9QRDo003069; Sun, 30 Sep 2012 09:26:27 GMT (envelope-from kevlo@svn.freebsd.org) Message-Id: <201209300926.q8U9QRDo003069@svn.freebsd.org> From: Kevin Lo Date: Sun, 30 Sep 2012 09:26:27 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r241067 - head/sys/dev/mmc X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Sep 2012 09:26:28 -0000 Author: kevlo Date: Sun Sep 30 09:26:26 2012 New Revision: 241067 URL: http://svn.freebsd.org/changeset/base/241067 Log: Remove an unneeded NULL check after M_WAITOK. Modified: head/sys/dev/mmc/mmc.c Modified: head/sys/dev/mmc/mmc.c ============================================================================== --- head/sys/dev/mmc/mmc.c Sun Sep 30 09:21:10 2012 (r241066) +++ head/sys/dev/mmc/mmc.c Sun Sep 30 09:26:26 2012 (r241067) @@ -1261,8 +1261,6 @@ mmc_discover_cards(struct mmc_softc *sc) if (newcard) { ivar = malloc(sizeof(struct mmc_ivars), M_DEVBUF, M_WAITOK | M_ZERO); - if (!ivar) - return; memcpy(ivar->raw_cid, raw_cid, sizeof(raw_cid)); } if (mmcbr_get_ro(sc->dev))