]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] ipl: Improve checking logic and remove switch defaults.
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>
Thu, 26 Mar 2009 14:24:51 +0000 (15:24 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 26 Mar 2009 14:24:30 +0000 (15:24 +0100)
commitfa79467e497e505723ce5c921b0e9766c52990ba
tree1936f555595fe3b236137c2cf44a5230e7cc1af3
parent552fe9e3ef164259a564c4f4b391739eae9b4aba
[S390] ipl: Improve checking logic and remove switch defaults.

A code analysis tool reported two warnings:
"The expression `ipl_info.type == IPL_TYPE_FCP' is true whenever evaluated."
and "Default is not possible". This patch improves the corresponding if
statement logic and removes the unnecessary switch defaults.

Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/ipl.c