git: 77032a990079 - stable/13 - linux(4): Move ff variable initialization from declaration.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Jun 2022 19:38:10 UTC
The branch stable/13 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=77032a9900796b1a348546e6205d4fe87ee5935e commit 77032a9900796b1a348546e6205d4fe87ee5935e Author: Dmitry Chagin <dchagin@FreeBSD.org> AuthorDate: 2021-08-12 08:57:16 +0000 Commit: Dmitry Chagin <dchagin@FreeBSD.org> 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)