summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2011-11-14 14:13:45 +0000
committerderaadt <deraadt@openbsd.org>2011-11-14 14:13:45 +0000
commit745d21ad25dbda51eba607624b4582533a089c47 (patch)
tree68f2fd5a3cc79af30a4d53f5750b0ec4d3255499
parentsync (diff)
downloadwireguard-openbsd-745d21ad25dbda51eba607624b4582533a089c47.tar.xz
wireguard-openbsd-745d21ad25dbda51eba607624b4582533a089c47.zip
local variable not needed in sdmmc_activate
-rw-r--r--sys/dev/sdmmc/sdmmc.c5
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