git: 30cac8e3bbc1 - main - ppc: Fix set but not used warnings on !i386.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Wed, 06 Apr 2022 23:45:58 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=30cac8e3bbc12a5ca16f1882af23a64d493cf6ce

commit 30cac8e3bbc12a5ca16f1882af23a64d493cf6ce
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-06 23:45:27 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-06 23:45:27 +0000

    ppc: Fix set but not used warnings on !i386.
    
    Move fetch of SYS_RES_IOPORT resource and associated variables under
    existing #ifdef __i386__.
---
 sys/dev/ppc/ppc.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys/dev/ppc/ppc.c b/sys/dev/ppc/ppc.c
index afc9e4b2dd9f..b452e9007dd4 100644
--- a/sys/dev/ppc/ppc.c
+++ b/sys/dev/ppc/ppc.c
@@ -1657,12 +1657,12 @@ ppc_setmode(device_t dev, int mode)
 int
 ppc_probe(device_t dev, int rid)
 {
+	struct ppc_data *ppc;
 #ifdef __i386__
 	static short next_bios_ppc = 0;
-#endif
-	struct ppc_data *ppc;
 	int error;
 	rman_res_t port;
+#endif
 
 	/*
 	 * Allocate the ppc_data structure.
@@ -1672,10 +1672,10 @@ ppc_probe(device_t dev, int rid)
 
 	ppc->rid_ioport = rid;
 
+#ifdef __i386__
 	/* retrieve ISA parameters */
 	error = bus_get_resource(dev, SYS_RES_IOPORT, rid, &port, NULL);
 
-#ifdef __i386__
 	/*
 	 * If port not specified, use bios list.
 	 */