x86-64, NUMA: Remove unused variable
authorFlorian Mickler <florian@mickler.org>
Sun, 3 Apr 2011 23:17:40 +0000 (01:17 +0200)
committerTejun Heo <tj@kernel.org>
Sun, 3 Apr 2011 23:21:00 +0000 (01:21 +0200)
In case !CONFIG_ACPI_NUMA and !CONFIG_AMD_NUMA gcc emits a warning
about the unused variable ret.

As that variable is in fact not needed I choose to remove it.

Signed-off-by: Florian Mickler <florian@mickler.org>
LKML-Reference: <1301843624-22364-1-git-send-email-florian@mickler.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
arch/x86/mm/numa_64.c

index 3951ee6eade761f0cb80683e4e72b35e4eb15b65..13f5b068e8c25242cc299883713e3bdb0bcb623f 100644 (file)
@@ -505,17 +505,13 @@ static int __init numa_init(int (*init_func)(void))
 
 void __init initmem_init(void)
 {
-       int ret;
-
        if (!numa_off) {
 #ifdef CONFIG_ACPI_NUMA
-               ret = numa_init(x86_acpi_numa_init);
-               if (!ret)
+               if (!numa_init(x86_acpi_numa_init))
                        return;
 #endif
 #ifdef CONFIG_AMD_NUMA
-               ret = numa_init(amd_numa_init);
-               if (!ret)
+               if (!numa_init(amd_numa_init))
                        return;
 #endif
        }