Skip to contentSkip to conversation

s390: Simplify the calculation of variables]

PATCH Vineeth Vijayan 1 participant 1 message Jan 28, 2021 1 message not in the archive s390

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Vineeth Vijayan

author Reviewed-by
#1 lore raw
Quoted 25 lines

Date: Tue, 26 Jan 2021 17:09:12 +0800
From: Jiapeng Zhong <[email protected]>
To: [email protected]
Cc: , Jiapeng Zhong
<[email protected]>
Subject: [PATCH] s390: Simplify the calculation of variables
Message-Id: <[email protected]>
X-Mailer: git-send-email 1.8.3.1

Fix the following coccicheck warnings:

./arch/s390/include/asm/scsw.h:528:48-50: WARNING !A || A && B is equivalent to !A || B.

---
  arch/s390/include/asm/scsw.h | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
arch/s390/include/asm/scsw.h +0 -0
index c00f7b0..a7c3ccf 100644

arch/s390/include/asm/scsw.h static inline int scsw_cmd_is_valid_pno(union scsw *scsw) · line 531

Quoted 9 lines
arch/s390/include/asm/scsw.h +1 -2
@@ -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));
  }
 
  /**

Thank you.

this will go via next s390-tree upstream-release.

Regards
Vineeth Vijayan.