From ff5bbabe6f34ceb86f7a0a175dadec5ef0d657fb Mon Sep 17 00:00:00 2001 From: mlelstv Date: Tue, 28 Jul 2015 06:17:53 +0000 Subject: [PATCH] cosmetic change only. --- sys/dev/sdmmc/sdmmc_io.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/sys/dev/sdmmc/sdmmc_io.c b/sys/dev/sdmmc/sdmmc_io.c index 74d1aeea068b..5a106b7e26c9 100644 --- a/sys/dev/sdmmc/sdmmc_io.c +++ b/sys/dev/sdmmc/sdmmc_io.c @@ -1,4 +1,4 @@ -/* $NetBSD: sdmmc_io.c,v 1.7 2012/02/01 22:34:43 matt Exp $ */ +/* $NetBSD: sdmmc_io.c,v 1.8 2015/07/28 06:17:53 mlelstv Exp $ */ /* $OpenBSD: sdmmc_io.c,v 1.10 2007/09/17 01:33:33 krw Exp $ */ /* @@ -20,7 +20,7 @@ /* Routines for SD I/O cards. */ #include -__KERNEL_RCSID(0, "$NetBSD: sdmmc_io.c,v 1.7 2012/02/01 22:34:43 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sdmmc_io.c,v 1.8 2015/07/28 06:17:53 mlelstv Exp $"); #ifdef _KERNEL_OPT #include "opt_sdmmc.h" @@ -693,12 +693,13 @@ sdmmc_card_intr(device_t dev) { struct sdmmc_softc *sc = device_private(dev); - if (sc->sc_sct->card_enable_intr) { - mutex_enter(&sc->sc_intr_task_mtx); - if (!sdmmc_task_pending(&sc->sc_intr_task)) - sdmmc_add_task(sc, &sc->sc_intr_task); - mutex_exit(&sc->sc_intr_task_mtx); - } + if (sc->sc_sct->card_enable_intr == NULL) + return; + + mutex_enter(&sc->sc_intr_task_mtx); + if (!sdmmc_task_pending(&sc->sc_intr_task)) + sdmmc_add_task(sc, &sc->sc_intr_task); + mutex_exit(&sc->sc_intr_task_mtx); } void