Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Oct 2022 17:03:41 GMT
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: ff270fce1631 - main - Make sure error is defined in dpaa2
Message-ID:  <202210271703.29RH3foq048193@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210271703.29RH3foq048193>