powerpc/prom: Fix unused variable ‘reserve_map’ when CONFIG_PPC32 is not set
[linux-2.6-microblaze.git] / arch / powerpc / kernel / prom.c
index f620e04..44b2cdc 100644 (file)
@@ -640,7 +640,9 @@ static void __init early_reserve_mem(void)
        }
 #endif /* CONFIG_BLK_DEV_INITRD */
 
-#ifdef CONFIG_PPC32
+       if (!IS_ENABLED(CONFIG_PPC32))
+               return;
+
        /* 
         * Handle the case where we might be booting from an old kexec
         * image that setup the mem_rsvmap as pairs of 32-bit values
@@ -661,7 +663,6 @@ static void __init early_reserve_mem(void)
                }
                return;
        }
-#endif
 }
 
 #ifdef CONFIG_PPC_TRANSACTIONAL_MEM