Author: dchagin
Date: Wed Mar  2 19:46:45 2011
New Revision: 219199
URL: http://svn.freebsd.org/changeset/base/219199

Log:
  MFC r218686:
  Style(9) fix. Do not initialize variables in the declarations.

Modified:
  stable/8/sys/compat/linux/linux_futex.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/compat/linux/linux_futex.c
==============================================================================
--- stable/8/sys/compat/linux/linux_futex.c     Wed Mar  2 19:45:50 2011        
(r219198)
+++ stable/8/sys/compat/linux/linux_futex.c     Wed Mar  2 19:46:45 2011        
(r219199)
@@ -448,8 +448,8 @@ linux_sys_futex(struct thread *td, struc
        int clockrt, nrwake, op_ret, ret, val;
        struct linux_emuldata *em;
        struct waiting_proc *wp;
-       struct futex *f, *f2 = NULL;
-       int error = 0;
+       struct futex *f, *f2;
+       int error;
 
        /*
         * Our implementation provides only privates futexes. Most of the apps
@@ -472,6 +472,9 @@ linux_sys_futex(struct thread *td, struc
                args->op != LINUX_FUTEX_WAIT_REQUEUE_PI)
                return (ENOSYS);
 
+       error = 0;
+       f = f2 = NULL;
+
        switch (args->op) {
        case LINUX_FUTEX_WAIT:
                args->val3 = FUTEX_BITSET_MATCH_ANY;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to