From ff9a6e3826faf10faa04bda09e1b860bf0874939 Mon Sep 17 00:00:00 2001 From: Bernhard Schmidt Date: Tue, 21 Dec 2010 09:13:24 +0000 Subject: Fix a panic while disabling the RF kill button, caller of the wpi_rfkill_resume() function will take care of the lock. PR: kern/14489 Approved by: re (kib) --- sys/dev/wpi/if_wpi.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sys') diff --git a/sys/dev/wpi/if_wpi.c b/sys/dev/wpi/if_wpi.c index 72d59109fec5..c5b171f8d2b2 100644 --- a/sys/dev/wpi/if_wpi.c +++ b/sys/dev/wpi/if_wpi.c @@ -3004,14 +3004,12 @@ wpi_rfkill_resume(struct wpi_softc *sc) if (ntries == 1000) { device_printf(sc->sc_dev, "timeout waiting for thermal calibration\n"); - WPI_UNLOCK(sc); return; } DPRINTFN(WPI_DEBUG_TEMP,("temperature %d\n", sc->temp)); if (wpi_config(sc) != 0) { device_printf(sc->sc_dev, "device config failed\n"); - WPI_UNLOCK(sc); return; } -- cgit v1.3