aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/acpica
diff options
context:
space:
mode:
authorNate Lawson <njl@FreeBSD.org>2004-04-21 02:10:58 +0000
committerNate Lawson <njl@FreeBSD.org>2004-04-21 02:10:58 +0000
commit8ec94874b221250e08db5b84dafa66e7322ce659 (patch)
tree3d473d01972200d8d282cc3319663aa3a91284c0 /sys/amd64/acpica
parent1cc11684ac8f4901edf2993aa6d5e2177b633d76 (diff)
downloadsrc-8ec94874b221250e08db5b84dafa66e7322ce659.tar.gz
src-8ec94874b221250e08db5b84dafa66e7322ce659.zip
Don't check for NULL, device_get_softc() always succeeds.
Notes
Notes: svn path=/head/; revision=128508
Diffstat (limited to 'sys/amd64/acpica')
-rw-r--r--sys/amd64/acpica/acpi_machdep.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/amd64/acpica/acpi_machdep.c b/sys/amd64/acpica/acpi_machdep.c
index dee828a02709..ee9deb34b6a4 100644
--- a/sys/amd64/acpica/acpi_machdep.c
+++ b/sys/amd64/acpica/acpi_machdep.c
@@ -40,8 +40,7 @@ acpi_machdep_init(device_t dev)
{
struct acpi_softc *sc;
- if ((sc = device_get_softc(dev)) == NULL)
- return (ENXIO);
+ sc = device_get_softc(dev);
acpi_install_wakeup_handler(sc);