summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2018-05-07 15:54:04 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2018-05-07 15:54:04 +0000
commit027cd12c36b0723e629c3e84625234dfe06d4c75 (patch)
tree128dc564bf1b36ad665e17fd30f97e4a847f7bfd /sys/kern
parent8760146ae56c27ffcc0d1add8244378a99b9c1eb (diff)
Zap two unused variables.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_witness.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index 5228f98683c..c9357fe2ce2 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_witness.c,v 1.11 2018/05/07 15:52:47 visa Exp $ */
+/* $OpenBSD: subr_witness.c,v 1.12 2018/05/07 15:54:03 visa Exp $ */
/*-
* Copyright (c) 2008 Isilon Systems, Inc.
@@ -2144,7 +2144,6 @@ witness_print_badstacks(void)
static struct witness_lock_order_data tmp_data1, tmp_data2;
struct witness_lock_order_data *data1, *data2;
struct witness *w1, *w2;
- u_int w_rmatrix1, w_rmatrix2;
int error, generation, i, j;
if (witness_watch < 1) {
@@ -2213,8 +2212,6 @@ restart:
* spin lock.
*/
tmp_w2 = *w2;
- w_rmatrix1 = (unsigned int)w_rmatrix[i][j];
- w_rmatrix2 = (unsigned int)w_rmatrix[j][i];
if (data1)
tmp_data1.wlod_stack = data1->wlod_stack;