summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2012-06-03 12:45:55 +0000
committerkettenis <kettenis@openbsd.org>2012-06-03 12:45:55 +0000
commit3f5cfc1cea5dd6408cf091e68731523f6d79bbb7 (patch)
tree824f196b9171a9e2518ae59ddec7e3dd954b2ee4
parentClose a preceding implicit block before opening an explicit block. (diff)
downloadwireguard-openbsd-3f5cfc1cea5dd6408cf091e68731523f6d79bbb7.tar.xz
wireguard-openbsd-3f5cfc1cea5dd6408cf091e68731523f6d79bbb7.zip
Remove unnecessary tcpib_wdt_unlock() calls.
From Matt Dainty.
-rw-r--r--sys/dev/pci/tcpcib.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/pci/tcpcib.c b/sys/dev/pci/tcpcib.c
index 5cae998de72..9a63ce08e65 100644
--- a/sys/dev/pci/tcpcib.c
+++ b/sys/dev/pci/tcpcib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcpcib.c,v 1.1 2012/05/27 12:24:33 jsg Exp $ */
+/* $OpenBSD: tcpcib.c,v 1.2 2012/06/03 12:45:55 kettenis Exp $ */
/*
* Copyright (c) 2012 Matt Dainty <matt@bodgit-n-scarper.com>
@@ -112,7 +112,6 @@ tcpcib_wdt_init(struct tcpcib_softc *sc, int period)
* Set watchdog to perform a cold reset toggling the GPIO pin and the
* prescaler set to 1ms-10m resolution
*/
- tcpcib_wdt_unlock(sc);
bus_space_write_1(sc->sc_wdt_iot, sc->sc_wdt_ioh, E600_WDT_WDTCR,
E600_WDT_WDTCR_ENABLE);
tcpcib_wdt_unlock(sc);
@@ -129,7 +128,6 @@ void
tcpcib_wdt_start(struct tcpcib_softc *sc)
{
/* Enable watchdog */
- tcpcib_wdt_unlock(sc);
bus_space_write_1(sc->sc_wdt_iot, sc->sc_wdt_ioh, E600_WDT_WDTLR,
E600_WDT_WDTLR_ENABLE);
}
@@ -141,7 +139,6 @@ tcpcib_wdt_stop(struct tcpcib_softc *sc)
tcpcib_wdt_unlock(sc);
bus_space_write_1(sc->sc_wdt_iot, sc->sc_wdt_ioh, E600_WDT_RR1,
E600_WDT_RR1_RELOAD);
- tcpcib_wdt_unlock(sc);
bus_space_write_1(sc->sc_wdt_iot, sc->sc_wdt_ioh, E600_WDT_WDTLR, 0);
}