]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0ff86c3bc6584ac60cb382634cb9c6ada4d3d5ca
tree87be0ac4271a40ede993bf20bef2ec0a9d386b32
parent67cbccedc8272426869119bb28f6b552d952174d
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