From nobody Fri Jun 17 19:38:10 2022 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id BB57885B028; Fri, 17 Jun 2022 19:38:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LPq8L35PMz3Q4W; Fri, 17 Jun 2022 19:38:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655494690; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TlNSMIGqiZeEviJB7sDngmGooyRm3Le1GfKJAB3kFDk=; b=pNCrBQCNn3Aq2x6DW4upDGnBwF5hNtlKn74mJyVVvLY5l5aBBvPQQc9W+5NrlIOzAbBJkr gHADITpikQoZK+W6tMZWEfM5xJs6o5YhrG6DNRbQKZk0lI8C8SAJX54U419PIxv31fR5Hf DcGiXIGrxQo1rD/TTJSLMvtS1ajzaov8AVkOtKcZu3gWp3UoHg+Kd2aOW7rNysQCnV2lT/ qJDQLF0qkYYrXz8y7LOHxFAuOvVLGtID9ZNDnifeSPW+JYXI8Ulu6Pe2ayLfgN/1mKx5dW F51bFbGSgT0V/rAY4zRss050FytEdzu9/pg7OcsCiPAgr1LVbzXLvDOK9VOfjA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3762725AC6; Fri, 17 Jun 2022 19:38:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 25HJcA73014322; Fri, 17 Jun 2022 19:38:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25HJcAfM014321; Fri, 17 Jun 2022 19:38:10 GMT (envelope-from git) Date: Fri, 17 Jun 2022 19:38:10 GMT Message-Id: <202206171938.25HJcAfM014321@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dmitry Chagin Subject: git: 77032a990079 - stable/13 - linux(4): Move ff variable initialization from declaration. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 77032a9900796b1a348546e6205d4fe87ee5935e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655494690; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TlNSMIGqiZeEviJB7sDngmGooyRm3Le1GfKJAB3kFDk=; b=g6Ng7ssxhTa9SS696CgVybOxW/EgSTp7dHecjJzkfKc3VCf4JOh/M/clfOvy75bGAkPU+Y 7I2uXm0GvyPyA0qGvRZK5cusPKTc5H5SsjyZMKL9DXVTykY8bCnoWhENkG6rR6G7LgNBRC wj02sdtS2dyVGzdSyOsU0kpP/0e0NfmAKUt9ZCGQpHwbwOfxV5Cw/8JB+OzQomh4P6JQzi 132t6cpZOWZg9HaV2mmxvvPykOa1jjofMw4MyUCb9AvRc8zZdekT/115lTScwbYVh9+Q4N 02yr68l8lp+dRFrekUHxcJVc9gz7BNxJMUe3sXXxlW0GD5Xu3Q5wuiXArBH8Rw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655494690; a=rsa-sha256; cv=none; b=UrKPJKZzI5aDrS1kIyvxt99nUcE7ZLOGs89H73bx8dbFkQeaftwp0swjCqldnXpTmdsBPB XJ+Wg+S+XsO0C9l34abLioj2/apePAmFZ5oYSqi8SC3fJRhUW0EjVl8eu2zIjaltNXdYXD DW0PjWn4REP0ycjkBk+7irzL0nPGBYItBIShtCVYIkd0iNKWo/khK1rH9bcOLQ5zJ5+Epc GsZGAZO+QYh040EicZGwtP4WWNyYzXpp4jp9Tgm4dUyxuovWxhzDLGNW/X6gENL/TOSprx FV9KUH9MU5fwquHL58Qde9R9NmBSk5lNnIpITY+FMkjQZPmQfgmH8BfVN/2Fzg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=77032a9900796b1a348546e6205d4fe87ee5935e commit 77032a9900796b1a348546e6205d4fe87ee5935e Author: Dmitry Chagin AuthorDate: 2021-08-12 08:57:16 +0000 Commit: Dmitry Chagin CommitDate: 2022-06-17 19:33:33 +0000 linux(4): Move ff variable initialization from declaration. Modern style(9) allows variables initialization where they are declared, but in this case initialization obfuscate the code. MFC after: 2 weeks (cherry picked from commit 1af0780b5f20aaa2603bba221ff78ca22dd44bd2) --- sys/compat/linux/linux_fork.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/compat/linux/linux_fork.c b/sys/compat/linux/linux_fork.c index 72e753db60d4..f722e3c08482 100644 --- a/sys/compat/linux/linux_fork.c +++ b/sys/compat/linux/linux_fork.c @@ -134,13 +134,14 @@ static int linux_clone_proc(struct thread *td, struct l_clone_args *args) { struct fork_req fr; - int error, ff = RFPROC | RFSTOPPED, f2; + int error, ff, f2; struct proc *p2; struct thread *td2; int exit_signal; struct linux_emuldata *em; f2 = 0; + ff = RFPROC | RFSTOPPED; if (LINUX_SIG_VALID(args->exit_signal)) { exit_signal = linux_to_bsd_signal(args->exit_signal); } else if (args->exit_signal != 0)