Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/linux/common Fix uninitialized variable. Harmless...



details:   https://anonhg.NetBSD.org/src/rev/eee574a8c973
branches:  trunk
changeset: 326665:eee574a8c973
user:      maxv <maxv%NetBSD.org@localhost>
date:      Tue Feb 11 16:00:13 2014 +0000

description:
Fix uninitialized variable. Harmless: it does not change the behavior
at all.

ok rmind@ christos@

diffstat:

 sys/compat/linux/common/linux_futex.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 555106b9b907 -r eee574a8c973 sys/compat/linux/common/linux_futex.c
--- a/sys/compat/linux/common/linux_futex.c     Tue Feb 11 09:04:28 2014 +0000
+++ b/sys/compat/linux/common/linux_futex.c     Tue Feb 11 16:00:13 2014 +0000
@@ -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 <sys/cdefs.h>
-__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 <sys/param.h>
 #include <sys/time.h>
@@ -610,7 +610,7 @@
                }
 
                error = ucas_int(uaddr, cval, nval, &oldval);
-               if (oldval == cval || error) {
+               if (error || oldval == cval) {
                        break;
                }
                cval = oldval;



Home | Main Index | Thread Index | Old Index