summaryrefslogtreecommitdiff
path: root/sys/dev/ic/re.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2016-03-19 11:34:23 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2016-03-19 11:34:23 +0000
commitcde54d41d41ecc698408ab4c1f6c1ed3bdcd939e (patch)
treed9413614165f0ac9fd7494467fa1480622305bc0 /sys/dev/ic/re.c
parentaead540ed22f539ba3dbfa37327af5dd4c8fe578 (diff)
Reduces the noise around the global ``ticks'' variable by renaming
all the local ones to ``nticks''. ok stefan@, deraadt@
Diffstat (limited to 'sys/dev/ic/re.c')
-rw-r--r--sys/dev/ic/re.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/re.c b/sys/dev/ic/re.c
index f8f77a59244..6330e4432fb 100644
--- a/sys/dev/ic/re.c
+++ b/sys/dev/ic/re.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: re.c,v 1.189 2016/01/04 05:41:22 dlg Exp $ */
+/* $OpenBSD: re.c,v 1.190 2016/03/19 11:34:22 mpi Exp $ */
/* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */
/*
* Copyright (c) 1997, 1998-2003
@@ -2262,15 +2262,15 @@ re_setup_sim_im(struct rl_softc *sc)
if (sc->sc_hwrev == RL_HWREV_8139CPLUS)
CSR_WRITE_4(sc, RL_TIMERINT, 0x400); /* XXX */
else {
- u_int32_t ticks;
+ u_int32_t nticks;
/*
* Datasheet says tick decreases at bus speed,
* but it seems the clock runs a little bit
* faster, so we do some compensation here.
*/
- ticks = (sc->rl_sim_time * sc->rl_bus_speed * 8) / 5;
- CSR_WRITE_4(sc, RL_TIMERINT_8169, ticks);
+ nticks = (sc->rl_sim_time * sc->rl_bus_speed * 8) / 5;
+ CSR_WRITE_4(sc, RL_TIMERINT_8169, nticks);
}
CSR_WRITE_4(sc, RL_TIMERCNT, 1); /* reload */
sc->rl_timerintr = 1;