From owner-svn-src-all@FreeBSD.ORG Mon Feb 14 17:24:59 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 372C5106566C; Mon, 14 Feb 2011 17:24:59 +0000 (UTC) (envelope-from dchagin@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 286B78FC0C; Mon, 14 Feb 2011 17:24:59 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p1EHOxt4000604; Mon, 14 Feb 2011 17:24:59 GMT (envelope-from dchagin@svn.freebsd.org) Received: (from dchagin@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p1EHOxf4000602; Mon, 14 Feb 2011 17:24:59 GMT (envelope-from dchagin@svn.freebsd.org) Message-Id: <201102141724.p1EHOxf4000602@svn.freebsd.org> From: Dmitry Chagin Date: Mon, 14 Feb 2011 17:24:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r218686 - head/sys/compat/linux X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2011 17:24:59 -0000 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;