Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic minor KNF tweaks
details: https://anonhg.NetBSD.org/src/rev/1e139c41c179
branches: trunk
changeset: 480073:1e139c41c179
user: sommerfeld <sommerfeld%NetBSD.org@localhost>
date: Sun Jan 02 02:08:07 2000 +0000
description:
minor KNF tweaks
diffstat:
sys/dev/ic/i82365.c | 31 ++++++++++++++-----------------
1 files changed, 14 insertions(+), 17 deletions(-)
diffs (53 lines):
diff -r e81ad3ffa7e9 -r 1e139c41c179 sys/dev/ic/i82365.c
--- a/sys/dev/ic/i82365.c Sat Jan 01 21:57:45 2000 +0000
+++ b/sys/dev/ic/i82365.c Sun Jan 02 02:08:07 2000 +0000
@@ -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 @@
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);
}
Home |
Main Index |
Thread Index |
Old Index