Properly hide a variable under #ifdef as it is only used inside the

specific #ifdef block otherwise leaving an unused variable and breaking
other kernel builds.
This commit is contained in:
Bjoern A. Zeeb 2015-02-09 11:34:45 +00:00
parent b6fdce7ea7
commit 66fe94642d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=278452

View file

@ -124,9 +124,9 @@ chrp_probe(platform_t plat)
static int
chrp_attach(platform_t plat)
{
#ifdef __powerpc64__
int i;
#ifdef __powerpc64__
/* XXX: check for /rtas/ibm,hypertas-functions? */
if (!(mfmsr() & PSL_HV)) {
struct mem_region *phys, *avail;