diff options
author | Thomas Renninger <trenn@suse.de> | 2012-07-31 19:41:08 +0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-08-03 08:15:42 +0400 |
commit | f3946fb6e50b750d34f445188fa6746d14596afa (patch) | |
tree | b834d92f3fc172d7f9757c54a005d6226ff4d813 /drivers | |
parent | 0d7614f09c1ebdbaa1599a5aba7593f147bf96ee (diff) | |
download | linux-f3946fb6e50b750d34f445188fa6746d14596afa.tar.xz |
ACPI: Untangle a return statement for better readability
No functional change.
Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/acpi/numa.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/acpi/numa.c b/drivers/acpi/numa.c index e56f3be7b07d..2a6399345c85 100644 --- a/drivers/acpi/numa.c +++ b/drivers/acpi/numa.c @@ -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; } |