summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorsommerfeld <sommerfeld@NetBSD.org>2000-01-02 02:08:07 +0000
committersommerfeld <sommerfeld@NetBSD.org>2000-01-02 02:08:07 +0000
commit9aeb6a25d258e8a3a194afb4fca6b429767730ab (patch)
tree622404c278212df1811c28639438f137aaefd6af /sys/dev
parentb38548c58de48cd3bc75f50196ca3388812d56cc (diff)
minor KNF tweaks
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/i82365.c31
1 files changed, 14 insertions, 17 deletions
diff --git a/sys/dev/ic/i82365.c b/sys/dev/ic/i82365.c
index 084251f881a..51f1fae25a5 100644
--- a/sys/dev/ic/i82365.c
+++ b/sys/dev/ic/i82365.c
@@ -1,4 +1,4 @@
-/* $NetBSD: i82365.c,v 1.26 2000/01/01 21:57:45 sommerfeld Exp $ */
+/* $NetBSD: i82365.c,v 1.27 2000/01/02 02:08:07 sommerfeld Exp $ */
#define PCICDEBUG
@@ -1424,30 +1424,27 @@ pcic_chip_socket_disable(pch)
delay(300 * 1000);
}
-
-
-
static u_int8_t
st_pcic_read(h, idx)
- struct pcic_handle *h;
- int idx;
+ struct pcic_handle *h;
+ int idx;
{
- if (idx != -1) {
- bus_space_write_1(h->ph_bus_t, h->ph_bus_h, PCIC_REG_INDEX, h->sock + idx);
- }
+ if (idx != -1)
+ bus_space_write_1(h->ph_bus_t, h->ph_bus_h, PCIC_REG_INDEX,
+ h->sock + idx);
- return bus_space_read_1(h->ph_bus_t, h->ph_bus_h, PCIC_REG_DATA);
+ return bus_space_read_1(h->ph_bus_t, h->ph_bus_h, PCIC_REG_DATA);
}
static void
st_pcic_write(h, idx, data)
- struct pcic_handle *h;
- int idx;
- u_int8_t data;
+ struct pcic_handle *h;
+ int idx;
+ u_int8_t data;
{
- if (idx != -1) {
- bus_space_write_1(h->ph_bus_t, h->ph_bus_h, PCIC_REG_INDEX, h->sock + idx);
- }
+ if (idx != -1)
+ bus_space_write_1(h->ph_bus_t, h->ph_bus_h, PCIC_REG_INDEX,
+ h->sock + idx);
- bus_space_write_1(h->ph_bus_t, h->ph_bus_h, PCIC_REG_DATA, data);
+ bus_space_write_1(h->ph_bus_t, h->ph_bus_h, PCIC_REG_DATA, data);
}