From: Heiko Carstens Date: Mon, 25 Mar 2013 16:22:52 +0000 (+0100) Subject: KVM: s390: make if statements in lpsw/lpswe handlers readable X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~32^2~83 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3736b874a39a1df2a94186c357aabeb6a7d7d4f6;p=pandora-kernel.git KVM: s390: make if statements in lpsw/lpswe handlers readable Being unable to parse the 5- and 8-line if statements I had to split them to be able to make any sense of them and verify that they match the architecture. So change the code since I guess that other people will also have a hard time parsing such long conditional statements with line breaks. Introduce a common is_valid_psw() function which does all the checks needed. In case of lpsw (64 bit psw -> 128 bit psw conversion) it will do some not needed additional checks, since a couple of bits can't be set anyway, but that doesn't hurt. Signed-off-by: Heiko Carstens Acked-by: Cornelia Huck Signed-off-by: Cornelia Huck Signed-off-by: Gleb Natapov --- Reading git-diff-tree failed