x86-64, NUMA: Remove unused variable
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>
This commit is contained in:
parent
3b16651f80
commit
711b8c87a5
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue