aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/syscons/apm
diff options
context:
space:
mode:
authorNick Sayer <nsayer@FreeBSD.org>2000-10-31 21:00:15 +0000
committerNick Sayer <nsayer@FreeBSD.org>2000-10-31 21:00:15 +0000
commit27beb2e98db3193bd22010b9eb00cc7787bb0a2f (patch)
treeb8bf4bc169f1e6888f50e62f69454a664b566b14 /sys/dev/syscons/apm
parentbe794da76a38df20a36ada140e2a43ce67f1fa9a (diff)
Notes
Diffstat (limited to 'sys/dev/syscons/apm')
-rw-r--r--sys/dev/syscons/apm/apm_saver.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/syscons/apm/apm_saver.c b/sys/dev/syscons/apm/apm_saver.c
index d7863ba9a53e..fa2047ff3e19 100644
--- a/sys/dev/syscons/apm/apm_saver.c
+++ b/sys/dev/syscons/apm/apm_saver.c
@@ -53,9 +53,7 @@ static int blanked=0;
static int
apm_saver(video_adapter_t *adp, int blank)
{
- struct apm_softc *sc = &apm_softc;
-
- if (!sc->initialized || !sc->active)
+ if (!apm_softc.initialized || !apm_softc.active)
return 0;
if (blank==blanked)
@@ -71,9 +69,7 @@ apm_saver(video_adapter_t *adp, int blank)
static int
apm_init(video_adapter_t *adp)
{
- struct apm_softc *sc = &apm_softc;
-
- if (!sc->initialized || !sc->active)
+ if (!apm_softc.initialized || !apm_softc.active)
printf("WARNING: apm_saver module requires apm enabled\n");
return 0;
}