Skip to content

Commit

Permalink
x86-64, NUMA: Remove unused variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
FlorianMickler authored and htejun committed Apr 3, 2011
1 parent 3b16651 commit 711b8c8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions arch/x86/mm/numa_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 711b8c8

Please sign in to comment.