diff options
author | 2011-05-23 11:58:03 +0000 | |
---|---|---|
committer | 2011-05-23 11:58:03 +0000 | |
commit | d2f46483a37ba10fef445092ab9121507fb8d0a0 (patch) | |
tree | 509e16f39ac94ff85f608ab07176ecbb0ed701f6 | |
parent | Allow specifying k/m/g/... suffixes in newfs(8) -S and -s options. (diff) | |
download | wireguard-openbsd-d2f46483a37ba10fef445092ab9121507fb8d0a0.tar.xz wireguard-openbsd-d2f46483a37ba10fef445092ab9121507fb8d0a0.zip |
Do not check malloc return value against NULL, as M_WAITOK is used.
-rw-r--r-- | sys/dev/acpi/acpivout.c | 6 |
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 */ |