diff options
author | Thomas Renninger <trenn@suse.de> | 2012-07-31 11:41:08 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-08-03 00:15:42 -0400 |
commit | f3946fb6e50b750d34f445188fa6746d14596afa (patch) | |
tree | b834d92f3fc172d7f9757c54a005d6226ff4d813 /drivers/acpi/numa.c | |
parent | 0d7614f09c1ebdbaa1599a5aba7593f147bf96ee (diff) |
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/acpi/numa.c')
-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) | |||
304 | 304 | ||
305 | acpi_numa_arch_fixup(); | 305 | acpi_numa_arch_fixup(); |
306 | 306 | ||
307 | if (cnt <= 0) | 307 | if (cnt < 0) |
308 | return cnt ?: -ENOENT; | 308 | return cnt; |
309 | else if (cnt == 0) | ||
310 | return -ENOENT; | ||
309 | return 0; | 311 | return 0; |
310 | } | 312 | } |
311 | 313 | ||