From eee9e229a0109a3ca9a9a71a7167939744f04966 Mon Sep 17 00:00:00 2001 From: yamt Date: Mon, 11 Aug 2008 02:44:28 +0000 Subject: [PATCH] lf_setlock: g/c dead code. --- sys/kern/vfs_lockf.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/sys/kern/vfs_lockf.c b/sys/kern/vfs_lockf.c index fdbbbf4498d3..398da1240176 100644 --- a/sys/kern/vfs_lockf.c +++ b/sys/kern/vfs_lockf.c @@ -1,4 +1,4 @@ -/* $NetBSD: vfs_lockf.c,v 1.67 2008/08/07 07:42:06 skrll Exp $ */ +/* $NetBSD: vfs_lockf.c,v 1.68 2008/08/11 02:44:28 yamt Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1993 @@ -35,7 +35,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: vfs_lockf.c,v 1.67 2008/08/07 07:42:06 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vfs_lockf.c,v 1.68 2008/08/11 02:44:28 yamt Exp $"); #include #include @@ -576,13 +576,6 @@ lf_setlock(struct lockf *lock, struct lockf **sparelock, waitblock = wlwp->l_wchan; lwp_unlock(wlwp); mutex_exit(p->p_lock); - if (waitblock == NULL) { - /* - * this lwp just got up but - * not returned from ltsleep yet. - */ - break; - } /* Get the owner of the blocking lock */ waitblock = waitblock->lf_next; if ((waitblock->lf_flags & F_POSIX) == 0)