diff options
| author | Nate Lawson <njl@FreeBSD.org> | 2004-04-21 02:10:58 +0000 |
|---|---|---|
| committer | Nate Lawson <njl@FreeBSD.org> | 2004-04-21 02:10:58 +0000 |
| commit | 8ec94874b221250e08db5b84dafa66e7322ce659 (patch) | |
| tree | 3d473d01972200d8d282cc3319663aa3a91284c0 /sys/amd64 | |
| parent | 1cc11684ac8f4901edf2993aa6d5e2177b633d76 (diff) | |
Notes
Diffstat (limited to 'sys/amd64')
| -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 dee828a027090..ee9deb34b6a46 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); |
