git: 9e75c46527df - stable/13 - imgact_aout.c: some style

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Fri, 10 Dec 2021 02:34:08 UTC
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=9e75c46527dffdf0703862adfb1054c1b221e88d

commit 9e75c46527dffdf0703862adfb1054c1b221e88d
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-12-03 10:32:35 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-12-10 02:32:18 +0000

    imgact_aout.c: some style
    
    (cherry picked from commit 290e05dde058b50aec48464d7116a55c7417575e)
---
 sys/kern/imgact_aout.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c
index b66c60138c61..6c1b6bf0bb6b 100644
--- a/sys/kern/imgact_aout.c
+++ b/sys/kern/imgact_aout.c
@@ -159,7 +159,7 @@ aout_fixup(uintptr_t *stack_base, struct image_params *imgp)
 static int
 exec_aout_imgact(struct image_params *imgp)
 {
-	const struct exec *a_out = (const struct exec *) imgp->image_header;
+	const struct exec *a_out;
 	struct vmspace *vmspace;
 	vm_map_t map;
 	vm_object_t object;
@@ -169,6 +169,8 @@ exec_aout_imgact(struct image_params *imgp)
 	unsigned long bss_size;
 	int error;
 
+	a_out = (const struct exec *)imgp->image_header;
+
 	/*
 	 * Linux and *BSD binaries look very much alike,
 	 * only the machine id is different:
@@ -178,7 +180,7 @@ exec_aout_imgact(struct image_params *imgp)
 	if (((a_out->a_midmag >> 16) & 0xff) != 0x86 &&
 	    ((a_out->a_midmag >> 16) & 0xff) != 0 &&
 	    ((((int)ntohl(a_out->a_midmag)) >> 16) & 0xff) != 0x86)
-                return -1;
+                return (-1);
 
 	/*
 	 * Set file/virtual offset based on a.out variant.