summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_timeout.c
diff options
context:
space:
mode:
authorjch <jch@FreeBSD.org>2015-08-27 10:43:35 +0000
committerjch <jch@FreeBSD.org>2015-08-27 10:43:35 +0000
commit761d6ba63348da0878796c51e4f4e6c186e13a2c (patch)
tree567163bee00e36750d01f857df58b1d96e3c2233 /sys/kern/kern_timeout.c
parent4015a832a39a1f863ec63a677721435df9a71b95 (diff)
downloadFreeBSD-src-761d6ba63348da0878796c51e4f4e6c186e13a2c.zip
FreeBSD-src-761d6ba63348da0878796c51e4f4e6c186e13a2c.tar.gz
Silent a compilation warning on callout_stop()
Diffstat (limited to 'sys/kern/kern_timeout.c')
-rw-r--r--sys/kern/kern_timeout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c
index e88c831..68c5edd 100644
--- a/sys/kern/kern_timeout.c
+++ b/sys/kern/kern_timeout.c
@@ -1150,7 +1150,8 @@ _callout_stop_safe(struct callout *c, int safe)
struct callout_cpu *cc, *old_cc;
struct lock_class *class;
int direct, sq_locked, use_lock;
- int not_on_a_list, not_running;
+ int not_on_a_list;
+ int not_running = 1;
if (safe)
WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, c->c_lock,
@@ -1385,8 +1386,7 @@ again:
* and indeed impossible to stop then return 0.
*/
not_running = !(cc_exec_curr(cc, direct) == c);
- } else
- not_running = 1;
+ }
CC_UNLOCK(cc);
return (not_running);
OpenPOWER on IntegriCloud