From ff270fce1631cdfbf8d3d76b9a9f5342b78972c9 Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Thu, 27 Oct 2022 17:59:48 +0100 Subject: [PATCH] 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 83563b82c6c..e895d2585a3 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