summaryrefslogtreecommitdiff
path: root/sys/dev/sbus/stp4020.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/sbus/stp4020.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/sbus/stp4020.c')
-rw-r--r--sys/dev/sbus/stp4020.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/sbus/stp4020.c b/sys/dev/sbus/stp4020.c
index cde691ef8d9..1fd19684546 100644
--- a/sys/dev/sbus/stp4020.c
+++ b/sys/dev/sbus/stp4020.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: stp4020.c,v 1.18 2013/11/19 01:23:51 deraadt Exp $ */
+/* $OpenBSD: stp4020.c,v 1.19 2016/03/19 11:34:22 mpi Exp $ */
/* $NetBSD: stp4020.c,v 1.23 2002/06/01 23:51:03 lukem Exp $ */
/*-
@@ -898,21 +898,21 @@ void
stp4020_delay(ms)
unsigned int ms;
{
- unsigned int ticks;
+ unsigned int nticks;
- /* Convert to ticks */
- ticks = (ms * hz) / 1000000;
+ /* Convert to nticks */
+ nticks = (ms * hz) / 1000000;
- if (cold || ticks == 0) {
+ if (cold || nticks == 0) {
delay(ms);
return;
}
#ifdef DEBUG
- if (ticks > 60 * hz)
- panic("stp4020: preposterous delay: %u", ticks);
+ if (nticks > 60 * hz)
+ panic("stp4020: preposterous delay: %u", nticks);
#endif
- tsleep(&ticks, 0, "stp4020_delay", ticks);
+ tsleep(&nticks, 0, "stp4020_delay", nticks);
}
#ifdef STP4020_DEBUG