summaryrefslogtreecommitdiff
path: root/sys/dev/cardbus/if_acx_cardbus.c
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2006-08-08 16:07:11 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2006-08-08 16:07:11 +0000
commit98902c9e1498a29cc563e4da072ab18ccc0cbdde (patch)
tree06265107aa03ee3de5f2f618889caffd3227f0fd /sys/dev/cardbus/if_acx_cardbus.c
parent224d640a7f3273808f86f55a91752f4c0b5b01ea (diff)
Some KNF.
Diffstat (limited to 'sys/dev/cardbus/if_acx_cardbus.c')
-rw-r--r--sys/dev/cardbus/if_acx_cardbus.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/sys/dev/cardbus/if_acx_cardbus.c b/sys/dev/cardbus/if_acx_cardbus.c
index 68f39eec928..7ab4c3417fc 100644
--- a/sys/dev/cardbus/if_acx_cardbus.c
+++ b/sys/dev/cardbus/if_acx_cardbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_acx_cardbus.c,v 1.6 2006/08/08 05:18:53 jsg Exp $ */
+/* $OpenBSD: if_acx_cardbus.c,v 1.7 2006/08/08 16:07:10 mglocker Exp $ */
/*
* Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org>
@@ -139,7 +139,6 @@ acx_cardbus_attach(struct device *parent, struct device *self, void *aux)
csc->sc_iobar_val = base | CARDBUS_MAPREG_TYPE_IO;
b1 = CARDBUS_BASE1_REG;
b2 = CARDBUS_BASE2_REG;
-
}
/* map control/status registers */
@@ -189,7 +188,7 @@ acx_cardbus_detach(struct device *self, int flags)
error = acx_detach(sc);
if (error != 0)
- return error;
+ return (error);
/* unhook the interrupt handler */
if (csc->sc_ih != NULL) {
@@ -206,7 +205,7 @@ acx_cardbus_detach(struct device *self, int flags)
Cardbus_mapreg_unmap(ct, CARDBUS_BASE0_REG, csc->sc_io_bt,
csc->sc_io_bh, csc->sc_iomapsize);
- return 0;
+ return (0);
}
int
@@ -230,10 +229,10 @@ acx_cardbus_enable(struct acx_softc *sc)
printf("%s: could not establish interrupt at %d\n",
sc->sc_dev.dv_xname, csc->sc_intrline);
Cardbus_function_disable(ct);
- return 1;
+ return (1);
}
- return 0;
+ return (0);
}
void
@@ -270,7 +269,7 @@ acx_cardbus_setup(struct acx_cardbus_softc *csc)
cardbus_chipset_tag_t cc = ct->ct_cc;
cardbus_function_tag_t cf = ct->ct_cf;
pcireg_t reg;
- int b1 = CARDBUS_BASE0_REG, b2 = CARDBUS_BASE1_REG;
+ int b1 = CARDBUS_BASE0_REG, b2 = CARDBUS_BASE1_REG;
if (csc->sc_iobar_val) {
cardbus_conf_write(cc, cf, csc->sc_tag, CARDBUS_BASE0_REG,