diff options
author | njl <njl@FreeBSD.org> | 2004-04-21 02:10:58 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2004-04-21 02:10:58 +0000 |
commit | d3289512e2b984ecb87b8a5948cc9c513403b95b (patch) | |
tree | 3d473d01972200d8d282cc3319663aa3a91284c0 /sys/amd64/acpica | |
parent | 9f92f4fef4573031fe2a609a08b9f0ed35424e36 (diff) | |
download | FreeBSD-src-d3289512e2b984ecb87b8a5948cc9c513403b95b.zip FreeBSD-src-d3289512e2b984ecb87b8a5948cc9c513403b95b.tar.gz |
Don't check for NULL, device_get_softc() always succeeds.
Diffstat (limited to 'sys/amd64/acpica')
-rw-r--r-- | sys/amd64/acpica/acpi_machdep.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/amd64/acpica/acpi_machdep.c b/sys/amd64/acpica/acpi_machdep.c index dee828a..ee9deb3 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); |