diff options
| author | Nick Sayer <nsayer@FreeBSD.org> | 2000-10-31 21:00:15 +0000 |
|---|---|---|
| committer | Nick Sayer <nsayer@FreeBSD.org> | 2000-10-31 21:00:15 +0000 |
| commit | 27beb2e98db3193bd22010b9eb00cc7787bb0a2f (patch) | |
| tree | b8bf4bc169f1e6888f50e62f69454a664b566b14 /sys/dev/syscons/apm | |
| parent | be794da76a38df20a36ada140e2a43ce67f1fa9a (diff) | |
Notes
Diffstat (limited to 'sys/dev/syscons/apm')
| -rw-r--r-- | sys/dev/syscons/apm/apm_saver.c | 8 |
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; } |
