commit | 9616dda1aaddb2080122aaeab96ad7fc064e36b4 | [log] [tgz] |
---|---|---|
author | Leonardo Bras <leonardo@linux.ibm.com> | Thu Aug 01 19:52:51 2019 -0300 |
committer | Michael Ellerman <mpe@ellerman.id.au> | Mon Aug 05 18:53:04 2019 +1000 |
tree | 87be0ac4271a40ede993bf20bef2ec0a9d386b32 | |
parent | 1ebe0dcce1750109181d666394b7dfd9af9ff645 [diff] |
powerpc/pseries/hotplug-memory.c: Replace nested ifs by switch-case I noticed these nested ifs can be easily replaced by switch-cases, which can improve readability. Signed-off-by: Leonardo Bras <leonardo@linux.ibm.com> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20190801225251.17864-1-leonardo@linux.ibm.com