From: Jiapeng Zhong Date: Tue, 26 Jan 2021 09:09:12 +0000 (+0800) Subject: s390: Simplify the calculation of variables X-Git-Tag: v5.12-rc1~138^2~47 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=85eda128e133bccaa2c7f7cf25d8de7991561be4;p=thirdparty%2Fkernel%2Flinux.git s390: Simplify the calculation of variables Fix the following coccicheck warnings: ./arch/s390/include/asm/scsw.h:528:48-50: WARNING !A || A && B is equivalent to !A || B. Reported-by: Abaci Robot Signed-off-by: Jiapeng Zhong Reviewed-by: Vineeth Vijayan Signed-off-by: Vasily Gorbik --- diff --git a/arch/s390/include/asm/scsw.h b/arch/s390/include/asm/scsw.h index c00f7b0316288..a7c3ccf681da0 100644 --- a/arch/s390/include/asm/scsw.h +++ b/arch/s390/include/asm/scsw.h @@ -525,8 +525,7 @@ static inline int scsw_cmd_is_valid_pno(union scsw *scsw) return (scsw->cmd.fctl != 0) && (scsw->cmd.stctl & SCSW_STCTL_STATUS_PEND) && (!(scsw->cmd.stctl & SCSW_STCTL_INTER_STATUS) || - ((scsw->cmd.stctl & SCSW_STCTL_INTER_STATUS) && - (scsw->cmd.actl & SCSW_ACTL_SUSPENDED))); + (scsw->cmd.actl & SCSW_ACTL_SUSPENDED)); } /**