diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-11-14 14:13:46 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-11-14 14:13:46 +0000 |
commit | 4479e991875585089291f68488b1c9fe94ef4a35 (patch) | |
tree | 74123561d97e514e8223ab8b8a02cba5c53a0e51 /sys/dev | |
parent | 833ba00bc7dcfcd0387025e12453a2d986d4296f (diff) |
local variable not needed in sdmmc_activate
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/sdmmc/sdmmc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/sdmmc/sdmmc.c b/sys/dev/sdmmc/sdmmc.c index 11ec05243fb..2f53c264252 100644 --- a/sys/dev/sdmmc/sdmmc.c +++ b/sys/dev/sdmmc/sdmmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sdmmc.c,v 1.25 2011/11/10 14:24:29 uwe Exp $ */ +/* $OpenBSD: sdmmc.c,v 1.26 2011/11/14 14:13:45 deraadt Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org> @@ -146,7 +146,6 @@ int sdmmc_activate(struct device *self, int act) { struct sdmmc_softc *sc = (struct sdmmc_softc *)self; - int rv = 0; switch (act) { case DVACT_SUSPEND: @@ -158,7 +157,7 @@ sdmmc_activate(struct device *self, int act) wakeup(&sc->sc_tskq); break; } - return (rv); + return (0); } void |