From 1f505a82c9e2374b5f94f16759b25ad68d9d1ebb Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Fri, 4 May 2007 13:21:04 +0000 Subject: Kill a dead variable. Pointed out by thib@ --- sys/kern/kern_rwlock.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'sys') 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 @@ -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); -- cgit v1.2.3