diff options
author | nate <nate@FreeBSD.org> | 1997-10-23 00:51:29 +0000 |
---|---|---|
committer | nate <nate@FreeBSD.org> | 1997-10-23 00:51:29 +0000 |
commit | 251c8be0fea380036a44081998448805786b16fb (patch) | |
tree | 35abb29a0a1a508ec395e0b4ca98a0d010be7d9e | |
parent | c6dc89058696661433717cb5b9f178a24e40d8a0 (diff) | |
download | FreeBSD-src-251c8be0fea380036a44081998448805786b16fb.zip FreeBSD-src-251c8be0fea380036a44081998448805786b16fb.tar.gz |
- Simplify code by removing a variable which was initialized once, never
modified, and was expected to have the initialized value.
-rw-r--r-- | sys/pccard/pccard.c | 9 | ||||
-rw-r--r-- | sys/pccard/slot.h | 1 |
2 files changed, 2 insertions, 8 deletions
diff --git a/sys/pccard/pccard.c b/sys/pccard/pccard.c index 2a44660..9da0e4b 100644 --- a/sys/pccard/pccard.c +++ b/sys/pccard/pccard.c @@ -357,8 +357,7 @@ slot_suspend(void *arg) for (dp = sp->devices; dp; dp = dp->next) (void)dp->drv->suspend(dp); - if (!sp->suspend_power) - sp->ctrl->disable(sp); + sp->ctrl->disable(sp); return (0); } @@ -385,8 +384,7 @@ slot_resume(void *arg) } else { struct pccard_dev *dp; - if (!sp->suspend_power) - sp->ctrl->power(sp); + sp->ctrl->power(sp); if (sp->irq) sp->ctrl->mapirq(sp, sp->irq); for (dp = sp->devices; dp; dp = dp->next) @@ -663,9 +661,6 @@ inserted(void *arg) * Now start resetting the card. */ sp->ctrl->reset(sp); -#if NAPM > 0 - sp->suspend_power = 0; -#endif } /* diff --git a/sys/pccard/slot.h b/sys/pccard/slot.h index 38e64ea..7ad82c3 100644 --- a/sys/pccard/slot.h +++ b/sys/pccard/slot.h @@ -130,7 +130,6 @@ struct slot { struct power pwr; /* Power values */ struct slot_ctrl *ctrl; /* Per-controller data */ void *cdata; /* Controller specific data */ - int suspend_power; /* Leave powered on during suspend */ int pwr_off_pending;/* Power status of slot */ #ifdef DEVFS void *devfs_token; |