]> git.baikalelectronics.ru Git - kernel.git/commit
s390/cio: simplify the calculation of variables
authorHaowen Bai <baihaowen@meizu.com>
Thu, 7 Apr 2022 02:16:47 +0000 (10:16 +0800)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 25 Apr 2022 11:54:13 +0000 (13:54 +0200)
commit4b5881e726311830f45d9a74d8b931d50e4933c6
treec7f9f80a3fe7e2e1bd180152300ed83d772a4015
parenta815ec0f1356260a41fe46efabb5091d20b54245
s390/cio: simplify the calculation of variables

Fix the following coccicheck warnings:
./arch/s390/include/asm/scsw.h:695:47-49: WARNING
 !A || A && B is equivalent to !A || B

I apply a readable version just to get rid of a warning.

Signed-off-by: Haowen Bai <baihaowen@meizu.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Link: https://lore.kernel.org/r/1649297808-5048-1-git-send-email-baihaowen@meizu.com
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Cc: Christian Borntraeger <borntraeger@linux.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/scsw.h