From 2e0441543193139c1039e18de2a413644ad45e8d Mon Sep 17 00:00:00 2001 From: Paul Irofti Date: Mon, 23 May 2011 11:58:04 +0000 Subject: Do not check malloc return value against NULL, as M_WAITOK is used. --- sys/dev/acpi/acpivout.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/dev/acpi/acpivout.c b/sys/dev/acpi/acpivout.c index c28fbeec551..e383001a137 100644 --- a/sys/dev/acpi/acpivout.c +++ b/sys/dev/acpi/acpivout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpivout.c,v 1.8 2011/04/06 21:16:13 martynas Exp $ */ +/* $OpenBSD: acpivout.c,v 1.9 2011/05/23 11:58:03 pirofti Exp $ */ /* * Copyright (c) 2009 Paul Irofti * @@ -285,10 +285,6 @@ acpivout_get_bcl(struct acpivout_softc *sc) sc->sc_bcl = malloc(sc->sc_bcl_len * sizeof(int), M_DEVBUF, M_WAITOK | M_ZERO); - if (sc->sc_bcl == NULL) { - sc->sc_bcl_len = 0; - goto err; - } for (i = 0; i < sc->sc_bcl_len; i++) { /* Sort darkest to brightest */ -- cgit v1.2.3