ACPI: Untangle a return statement for better readability
authorThomas Renninger <trenn@suse.de>
Tue, 31 Jul 2012 15:41:08 +0000 (17:41 +0200)
committerLen Brown <len.brown@intel.com>
Fri, 3 Aug 2012 04:15:42 +0000 (00:15 -0400)
No functional change.

Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/numa.c

index e56f3be7b07d36fceb32dce25ede0fa35308f0e7..2a6399345c853be6a07bc20afc195c838bf7955c 100644 (file)
@@ -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;
 }