From d1255b77741c71f2cf23261e80f7de045a7ef69f Mon Sep 17 00:00:00 2001 From: Paul Irofti Date: Tue, 19 Jun 2012 11:47:11 +0000 Subject: Count should always start from zero. Doesn't matter if we need to relocate or not. Makes sense to jasper@ --- sys/compat/linux/linux_futex.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sys/compat/linux/linux_futex.c') diff --git a/sys/compat/linux/linux_futex.c b/sys/compat/linux/linux_futex.c index 510d6705a85..c8eb1cc8e2e 100644 --- a/sys/compat/linux/linux_futex.c +++ b/sys/compat/linux/linux_futex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_futex.c,v 1.8 2012/06/19 11:46:00 pirofti Exp $ */ +/* $OpenBSD: linux_futex.c,v 1.9 2012/06/19 11:47:10 pirofti Exp $ */ /* $NetBSD: linux_futex.c,v 1.26 2010/07/07 01:30:35 chs Exp $ */ /*- @@ -522,13 +522,11 @@ int futex_wake(struct futex *f, int n, struct futex *newf, int n2) { struct waiting_proc *wp; - int count; + int count = 0; KASSERT(newf != f); MUTEX_ASSERT_LOCKED(&futex_lock); - count = newf ? 0 : 1; - /* * first, wake up any threads sleeping on this futex. * note that sleeping threads are not in the process of requeueing. -- cgit v1.2.3