Date: Mon, 14 Feb 2011 17:24:59 +0000 (UTC) From: Dmitry Chagin <dchagin@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r218686 - head/sys/compat/linux Message-ID: <201102141724.p1EHOxf4000602@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dchagin Date: Mon Feb 14 17:24:58 2011 New Revision: 218686 URL: http://svn.freebsd.org/changeset/base/218686 Log: Style(9) fix. Do not initialize variables in the declarations. Modified: head/sys/compat/linux/linux_futex.c Modified: head/sys/compat/linux/linux_futex.c ============================================================================== --- head/sys/compat/linux/linux_futex.c Mon Feb 14 17:20:20 2011 (r218685) +++ head/sys/compat/linux/linux_futex.c Mon Feb 14 17:24:58 2011 (r218686) @@ -436,8 +436,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 @@ -460,6 +460,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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102141724.p1EHOxf4000602>