commit | f3946fb6e50b750d34f445188fa6746d14596afa | [log] [tgz] |
---|---|---|
author | Thomas Renninger <trenn@suse.de> | Tue Jul 31 17:41:08 2012 +0200 |
committer | Len Brown <len.brown@intel.com> | Fri Aug 03 00:15:42 2012 -0400 |
tree | b834d92f3fc172d7f9757c54a005d6226ff4d813 | |
parent | 0d7614f09c1ebdbaa1599a5aba7593f147bf96ee [diff] [blame] |
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>
diff --git a/drivers/acpi/numa.c b/drivers/acpi/numa.c index e56f3be..2a63993 100644 --- a/drivers/acpi/numa.c +++ b/drivers/acpi/numa.c
@@ -304,8 +304,10 @@ acpi_numa_arch_fixup(); - if (cnt <= 0) - return cnt ?: -ENOENT; + if (cnt < 0) + return cnt; + else if (cnt == 0) + return -ENOENT; return 0; }