Don't needlessly indirect the APM softstate. It does nothing but

obfuscate the code.
This commit is contained in:
Nick Sayer 2000-10-31 21:00:15 +00:00
parent be794da76a
commit 27beb2e98d
2 changed files with 4 additions and 12 deletions

View File

@ -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;
}

View File

@ -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;
}