From f945d6d845ed8e9e3f368d44dab18780525aae32 Mon Sep 17 00:00:00 2001 From: maxv Date: Tue, 11 Feb 2014 16:00:13 +0000 Subject: [PATCH] Fix uninitialized variable. Harmless: it does not change the behavior at all. ok rmind@ christos@ --- sys/compat/linux/common/linux_futex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/compat/linux/common/linux_futex.c b/sys/compat/linux/common/linux_futex.c index dc479272c8c6..c879281b810a 100644 --- a/sys/compat/linux/common/linux_futex.c +++ b/sys/compat/linux/common/linux_futex.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_futex.c,v 1.32 2013/10/17 21:08:16 christos Exp $ */ +/* $NetBSD: linux_futex.c,v 1.33 2014/02/11 16:00:13 maxv Exp $ */ /*- * Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved. @@ -32,7 +32,7 @@ */ #include -__KERNEL_RCSID(1, "$NetBSD: linux_futex.c,v 1.32 2013/10/17 21:08:16 christos Exp $"); +__KERNEL_RCSID(1, "$NetBSD: linux_futex.c,v 1.33 2014/02/11 16:00:13 maxv Exp $"); #include #include @@ -610,7 +610,7 @@ futex_atomic_op(lwp_t *l, int encoded_op, void *uaddr) } error = ucas_int(uaddr, cval, nval, &oldval); - if (oldval == cval || error) { + if (error || oldval == cval) { break; } cval = oldval;