diff options
author | mmcc <mmcc@cvs.openbsd.org> | 2015-12-29 04:46:29 +0000 |
---|---|---|
committer | mmcc <mmcc@cvs.openbsd.org> | 2015-12-29 04:46:29 +0000 |
commit | 50e79a803f68420b63aa1c234d9fbb559b516596 (patch) | |
tree | de30c4eb556a1a06cdce2ffa2d52da41d52e8ceb /sys/dev/acpi/acpicpu.c | |
parent | d120957138dda2b5bd56658c84dddb03046e22ab (diff) |
Remove NULL-checks before free().
ok tb@
Diffstat (limited to 'sys/dev/acpi/acpicpu.c')
-rw-r--r-- | sys/dev/acpi/acpicpu.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/acpi/acpicpu.c b/sys/dev/acpi/acpicpu.c index e018ff91b08..7bf470b9659 100644 --- a/sys/dev/acpi/acpicpu.c +++ b/sys/dev/acpi/acpicpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpicpu.c,v 1.71 2015/12/23 17:07:09 jcs Exp $ */ +/* $OpenBSD: acpicpu.c,v 1.72 2015/12/29 04:46:28 mmcc Exp $ */ /* * Copyright (c) 2005 Marco Peereboom <marco@openbsd.org> * Copyright (c) 2015 Philip Guenther <guenther@openbsd.org> @@ -906,8 +906,7 @@ acpicpu_getpss(struct acpicpu_softc *sc) return (1); } - if (sc->sc_pss) - free(sc->sc_pss, M_DEVBUF, 0); + free(sc->sc_pss, M_DEVBUF, 0); sc->sc_pss = mallocarray(res.length, sizeof(*sc->sc_pss), M_DEVBUF, M_WAITOK | M_ZERO); |