mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 16:54:21 +00:00 
			
		
		
		
	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 <abaci@linux.alibaba.com> Signed-off-by: Jiapeng Zhong <abaci-bugfix@linux.alibaba.com> Reviewed-by: Vineeth Vijayan <vneethv@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
This commit is contained in:
		
							parent
							
								
									d09cb482ed
								
							
						
					
					
						commit
						85eda128e1
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -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)); | ||||
| } | ||||
| 
 | ||||
| /**
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Jiapeng Zhong
						Jiapeng Zhong