From 27beb2e98db3193bd22010b9eb00cc7787bb0a2f Mon Sep 17 00:00:00 2001 From: Nick Sayer Date: Tue, 31 Oct 2000 21:00:15 +0000 Subject: Don't needlessly indirect the APM softstate. It does nothing but obfuscate the code. --- sys/modules/syscons/apm/apm_saver.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'sys/modules') diff --git a/sys/modules/syscons/apm/apm_saver.c b/sys/modules/syscons/apm/apm_saver.c index d7863ba9a53e..fa2047ff3e19 100644 --- a/sys/modules/syscons/apm/apm_saver.c +++ b/sys/modules/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; } -- cgit v1.3