summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/aic79xx_openbsd.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2016-03-19 11:34:22 +0000
committermpi <mpi@openbsd.org>2016-03-19 11:34:22 +0000
commite253c8f7ce5ce91da1a660c4b0d0a74fe719d95c (patch)
tree6b800534fc0141fec5d2cbd27fb7fbc261434445 /sys/dev/ic/aic79xx_openbsd.c
parentRemove support for the XScale 80200. We don't use it, it didn't compile (diff)
downloadwireguard-openbsd-e253c8f7ce5ce91da1a660c4b0d0a74fe719d95c.tar.xz
wireguard-openbsd-e253c8f7ce5ce91da1a660c4b0d0a74fe719d95c.zip
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/aic79xx_openbsd.c')
-rw-r--r--sys/dev/ic/aic79xx_openbsd.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/sys/dev/ic/aic79xx_openbsd.c b/sys/dev/ic/aic79xx_openbsd.c
index ee636eb146f..c396b30fdff 100644
--- a/sys/dev/ic/aic79xx_openbsd.c
+++ b/sys/dev/ic/aic79xx_openbsd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aic79xx_openbsd.c,v 1.43 2015/07/17 21:42:49 krw Exp $ */
+/* $OpenBSD: aic79xx_openbsd.c,v 1.44 2016/03/19 11:34:22 mpi Exp $ */
/*
* Copyright (c) 2004 Milos Urbanek, Kenneth R. Westerback & Marco Peereboom
@@ -692,24 +692,24 @@ void
aic_timer_reset(aic_timer_t *timer, u_int msec, ahd_callback_t *func,
void *arg)
{
- uint64_t ticks;
+ uint64_t nticks;
- ticks = msec;
- ticks *= hz;
- ticks /= 1000;
- callout_reset(timer, ticks, func, arg);
+ nticks = msec;
+ nticks *= hz;
+ nticks /= 1000;
+ callout_reset(timer, nticks, func, arg);
}
void
aic_scb_timer_reset(struct scb *scb, u_int msec)
{
- uint64_t ticks;
+ uint64_t nticks;
- ticks = msec;
- ticks *= hz;
- ticks /= 1000;
+ nticks = msec;
+ nticks *= hz;
+ nticks /= 1000;
if (!(scb->xs->xs_control & XS_CTL_POLL))
- callout_reset(&scb->xs->xs_callout, ticks, ahd_timeout, scb);
+ callout_reset(&scb->xs->xs_callout, nticks, ahd_timeout, scb);
}
void