OSDN Git Service

powerpc/pseries/hotplug-memory.c: Replace nested ifs by switch-case
authorLeonardo Bras <leonardo@linux.ibm.com>
Thu, 1 Aug 2019 22:52:51 +0000 (19:52 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 5 Aug 2019 08:53:04 +0000 (18:53 +1000)
commit9616dda1aaddb2080122aaeab96ad7fc064e36b4
tree87be0ac4271a40ede993bf20bef2ec0a9d386b32
parent1ebe0dcce1750109181d666394b7dfd9af9ff645
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
arch/powerpc/platforms/pseries/hotplug-memory.c