summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorThomas Renninger <trenn@suse.de>2012-07-31 17:41:08 +0200
committerLen Brown <len.brown@intel.com>2012-08-03 00:15:42 -0400
commitf3946fb6e50b750d34f445188fa6746d14596afa (patch)
treeb834d92f3fc172d7f9757c54a005d6226ff4d813 /drivers
parent0d7614f09c1ebdbaa1599a5aba7593f147bf96ee (diff)
downloadlinux-f3946fb6e50b750d34f445188fa6746d14596afa.tar.bz2
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.c6
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;
}