Commit f3946fb6e50b750d34f445188fa6746d14596afa

Authored by Thomas Renninger
Committed by Len Brown
1 parent 0d7614f09c

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>

Showing 1 changed file with 4 additions and 2 deletions Side-by-side Diff

... ... @@ -304,8 +304,10 @@
304 304  
305 305 acpi_numa_arch_fixup();
306 306  
307   - if (cnt <= 0)
308   - return cnt ?: -ENOENT;
  307 + if (cnt < 0)
  308 + return cnt;
  309 + else if (cnt == 0)
  310 + return -ENOENT;
309 311 return 0;
310 312 }
311 313