mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-31 16:57:10 +00:00
Don't needlessly indirect the APM softstate. It does nothing but
obfuscate the code.
This commit is contained in:
parent
be794da76a
commit
27beb2e98d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68103
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user