git: ff270fce1631 - main - Make sure error is defined in dpaa2

From: Andrew Turner <andrew_at_FreeBSD.org>
Date: Thu, 27 Oct 2022 17:03:41 UTC
The branch main has been updated by andrew:

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

commit ff270fce1631cdfbf8d3d76b9a9f5342b78972c9
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2022-10-27 16:59:48 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2022-10-27 17:03:32 +0000

    Make sure error is defined in dpaa2
    
    The error variable is used in both the ACPI and FDT paths. Declare it
    unconditionally.
    
    Sponsored by:   The FreeBSD Foundation
---
 sys/dev/dpaa2/dpaa2_mc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/dpaa2/dpaa2_mc.c b/sys/dev/dpaa2/dpaa2_mc.c
index 83563b82c6c7..e895d2585a3a 100644
--- a/sys/dev/dpaa2/dpaa2_mc.c
+++ b/sys/dev/dpaa2/dpaa2_mc.c
@@ -747,8 +747,8 @@ dpaa2_mc_get_xref(device_t mcdev, device_t child)
 #endif
 #ifdef FDT
 	phandle_t msi_parent;
-	int error;
 #endif
+	int error;
 
 	if (sc && dinfo) {
 #ifdef DEV_ACPI