diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2007-05-04 13:21:04 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2007-05-04 13:21:04 +0000 |
commit | 1f505a82c9e2374b5f94f16759b25ad68d9d1ebb (patch) | |
tree | c5c1bcb58a1d012f3bd3209c280dc975b94621fe | |
parent | 202dbd708c78383337cb4e23012236006ec5b3d4 (diff) |
Kill a dead variable.
Pointed out by thib@
-rw-r--r-- | sys/kern/kern_rwlock.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/kern/kern_rwlock.c b/sys/kern/kern_rwlock.c index 3641403f369..0a2bca5a861 100644 --- a/sys/kern/kern_rwlock.c +++ b/sys/kern/kern_rwlock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_rwlock.c,v 1.11 2007/05/04 12:56:15 art Exp $ */ +/* $OpenBSD: kern_rwlock.c,v 1.12 2007/05/04 13:21:03 art Exp $ */ /* * Copyright (c) 2002, 2003 Artur Grabowski <art@openbsd.org> @@ -190,11 +190,7 @@ rw_enter(struct rwlock *rwl, int flags) retry: while (__predict_false(((o = rwl->rwl_owner) & op->check) != 0)) { unsigned long set = o | op->wait_set; - int do_sleep, prio; - - prio = op->wait_prio; - if (flags & RW_INTR) - prio |= PCATCH; + int do_sleep; rw_enter_diag(rwl, flags); |