summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-08-03 06:47:15 +0000
committerguenther <guenther@openbsd.org>2013-08-03 06:47:15 +0000
commitfc32cd9bfca652dc0ca1d82cd0e57252a5bacd0d (patch)
tree35a35c9e3346b952e905876fbf733633c5cc3d8a
parentKERN_PROC_BYPID --> KERN_FILE_BYPID (diff)
downloadwireguard-openbsd-fc32cd9bfca652dc0ca1d82cd0e57252a5bacd0d.tar.xz
wireguard-openbsd-fc32cd9bfca652dc0ca1d82cd0e57252a5bacd0d.zip
Delete variable left over from the diagnostic code removed by previous commit
pointed out by Artturi Alm (artturi.alm (at) gmail.com)
-rw-r--r--sys/kern/kern_timeout.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c
index d1986c7b95d..b46c0a393b6 100644
--- a/sys/kern/kern_timeout.c
+++ b/sys/kern/kern_timeout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_timeout.c,v 1.35 2012/06/02 00:11:16 guenther Exp $ */
+/* $OpenBSD: kern_timeout.c,v 1.36 2013/08/03 06:47:15 guenther Exp $ */
/*
* Copyright (c) 2001 Thomas Nordin <nordin@openbsd.org>
* Copyright (c) 2000-2001 Artur Grabowski <art@openbsd.org>
@@ -350,7 +350,7 @@ timeout_adjust_ticks(int adj)
{
struct timeout *to;
struct circq *p;
- int new_ticks, b, old;
+ int new_ticks, b;
/* adjusting the monotonic clock backwards would be a Bad Thing */
if (adj <= 0)
@@ -364,8 +364,6 @@ timeout_adjust_ticks(int adj)
to = (struct timeout *)p; /* XXX */
p = CIRCQ_FIRST(p);
- old = to->to_time;
-
/* when moving a timeout forward need to reinsert it */
if (to->to_time - ticks < adj)
to->to_time = new_ticks;