diff options
author | nsayer <nsayer@FreeBSD.org> | 2000-10-31 21:00:15 +0000 |
---|---|---|
committer | nsayer <nsayer@FreeBSD.org> | 2000-10-31 21:00:15 +0000 |
commit | 8e1865efde4f897ba5fecfffeaed55b6e8ae64aa (patch) | |
tree | 98eef46f3ceb5c522b109fef6627a7b2346a315d /sys/dev | |
parent | 39de4067ae4666c1ef59bfc488ef0c1eef1fa59e (diff) | |
download | FreeBSD-src-8e1865efde4f897ba5fecfffeaed55b6e8ae64aa.zip FreeBSD-src-8e1865efde4f897ba5fecfffeaed55b6e8ae64aa.tar.gz |
Don't needlessly indirect the APM softstate. It does nothing but
obfuscate the code.
Diffstat (limited to 'sys/dev')
-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 d7863ba..fa2047f 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; } |