projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d7614f
)
ACPI: Untangle a return statement for better readability
author
Thomas Renninger
<trenn@suse.de>
Tue, 31 Jul 2012 15:41:08 +0000
(17:41 +0200)
committer
Len 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
patch
|
blob
|
history
diff --git
a/drivers/acpi/numa.c
b/drivers/acpi/numa.c
index e56f3be7b07d36fceb32dce25ede0fa35308f0e7..2a6399345c853be6a07bc20afc195c838bf7955c 100644
(file)
--- 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;
}