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
This commit is contained in:
Andrew Turner 2022-10-27 17:59:48 +01:00
parent c8113dad7e
commit ff270fce16

View File

@ -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