summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Irofti <pirofti@cvs.openbsd.org>2011-05-23 11:58:04 +0000
committerPaul Irofti <pirofti@cvs.openbsd.org>2011-05-23 11:58:04 +0000
commit2e0441543193139c1039e18de2a413644ad45e8d (patch)
treea4deb9985f958e8a8622bab1e742f8d841e30ad8
parent91383aaafe79d6390c4b6c16c74982abb6ebe7ad (diff)
Do not check malloc return value against NULL, as M_WAITOK is used.
-rw-r--r--sys/dev/acpi/acpivout.c6
1 files changed, 1 insertions, 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 <pirofti@openbsd.org>
*
@@ -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 */