summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMarek Vasut <marex@cvs.openbsd.org>2009-09-03 18:39:09 +0000
committerMarek Vasut <marex@cvs.openbsd.org>2009-09-03 18:39:09 +0000
commit6dca254c3bd2f12561c7f5c8c11996132cc6ac26 (patch)
tree455528382a390568a6bf8ad866f30e6d140498e6 /sys/arch
parent56f7add333ac6f22a9079e6197ff8a02bc5a7bec (diff)
pxa2x0_mmc.c: Dont read MMC_STAT in intr_done if not needed
It is not needed to read MMC_STAT if DPRINTF is empty. OK deraadt
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/arm/xscale/pxa2x0_mmc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/arch/arm/xscale/pxa2x0_mmc.c b/sys/arch/arm/xscale/pxa2x0_mmc.c
index deb9780b1ed..6798fd9d2ec 100644
--- a/sys/arch/arm/xscale/pxa2x0_mmc.c
+++ b/sys/arch/arm/xscale/pxa2x0_mmc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pxa2x0_mmc.c,v 1.6 2009/09/02 02:40:43 marex Exp $ */
+/* $OpenBSD: pxa2x0_mmc.c,v 1.7 2009/09/03 18:39:08 marex Exp $ */
/*
* Copyright (c) 2007 Uwe Stuehler <uwe@openbsd.org>
@@ -674,11 +674,8 @@ pxammc_intr_data(struct pxammc_softc *sc)
void
pxammc_intr_done(struct pxammc_softc *sc)
{
- u_int32_t status;
-
- status = CSR_READ_4(sc, MMC_STAT);
DPRINTF(1,("%s: status %b\n", sc->sc_dev.dv_xname,
- status, MMC_STAT_STR));
+ CSR_READ_4(sc, MMC_STAT), MMC_STAT_STR));
CSR_SET_4(sc, MMC_I_MASK, MMC_I_TXFIFO_WR_REQ |
MMC_I_RXFIFO_RD_REQ | MMC_I_DATA_TRAN_DONE |