diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2022-10-27 16:59:48 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2022-10-27 17:03:32 +0000 |
commit | ff270fce1631cdfbf8d3d76b9a9f5342b78972c9 (patch) | |
tree | 4c4cc93d4decaea063680eef44a377526756abcc | |
parent | c8113dad7ed4024376901a834fc239d754292049 (diff) | |
download | src-ff270fce1631cdfbf8d3d76b9a9f5342b78972c9.tar.gz src-ff270fce1631cdfbf8d3d76b9a9f5342b78972c9.zip |
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
-rw-r--r-- | sys/dev/dpaa2/dpaa2_mc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |