diff options
author | Paul Irofti <pirofti@cvs.openbsd.org> | 2012-06-19 11:47:11 +0000 |
---|---|---|
committer | Paul Irofti <pirofti@cvs.openbsd.org> | 2012-06-19 11:47:11 +0000 |
commit | d1255b77741c71f2cf23261e80f7de045a7ef69f (patch) | |
tree | 1061e79085f7b2181c14bbd5abaea3964bed17e3 | |
parent | cff5ee8c12bc60ca59651abb691f2234432234f6 (diff) |
Count should always start from zero.
Doesn't matter if we need to relocate or not.
Makes sense to jasper@
-rw-r--r-- | sys/compat/linux/linux_futex.c | 6 |
1 files changed, 2 insertions, 4 deletions
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. |