Skip to content

Commit

Permalink
ACPI: Untangle a return statement for better readability
Browse files Browse the repository at this point in the history
No functional change.

Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Thomas Renninger authored and Len Brown committed Aug 3, 2012
1 parent 0d7614f commit f3946fb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/acpi/numa.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,10 @@ int __init acpi_numa_init(void)

acpi_numa_arch_fixup();

if (cnt <= 0)
return cnt ?: -ENOENT;
if (cnt < 0)
return cnt;
else if (cnt == 0)
return -ENOENT;
return 0;
}

Expand Down

0 comments on commit f3946fb

Please sign in to comment.