Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1082208pxb; Thu, 19 Aug 2021 19:56:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUuOGIqQMTGQv58imnI6fGvhomO40x1fsXOG9i+qBAaSjWxnybV3Fwq3T6gGq0a+cJDqBf X-Received: by 2002:a05:6402:39a:: with SMTP id o26mr20013963edv.64.1629428193854; Thu, 19 Aug 2021 19:56:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629428193; cv=none; d=google.com; s=arc-20160816; b=wOl0T4e+sZVqb7MTTPDv7SGvE9UGcrRphISquqwJ2ruk3VFG3pUve4LHA2f+8bWt49 kf+N5ykqQxND70U+ZR5RLKQuXDMmnjqQ6D0J0qRLAZHMDtCERMuVD6VbWbVzl8PzpxAg WwAjFVDry4NPhAXXgW6W9m7wh67rBQdPJOFt7z3+XXe6rwOAQUObIqpPqlIcdMv4LJRZ JeKSVZeicbmv8hvjhM7a3mYr712zVDhjhQuphUmFyyN49jiOjwHiQD8/6JeQxziVQRRa xaju0Vksll8uh+V7F/0YTnB2VGKDzzNVV0plJYJmQn95TYdEwjzNgEUIISfsAzIfrR94 Apsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=u8qviJxekZI0W9oeMNNpxswXOhMmSMq6jYU5M5DVl1Y=; b=clYSboeuCj2ZnqGiUowX6N81HZZfmbFSUaGVhgPOswDSh8CfyfQcmhzXtY7HVWTuQl Y9nCZ4C6+2RZw4hTXsrEQhZCS2Y69HijuQI9VwJIBNknnDhPnUABQ9l641qxjBNruFOs ZUUmgHltJYkyWVrnDZm7p8La4h2oz2yLiIkrW4xS0+nQcL8NjDIDB/ELpT9ttLrckJ3x PHJ47Vg2eMk9R4JldWLnf2IV4EUHbgmroTqMANllBkUR1zJR9gqNW8YcwOXIjvJkI+mb KA0RgwkKESog+3whrATGmLp0mXbdOwys75F+USt3pftYYszNhA6jFB0ZoRk8zv6ERlhb Lgzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZptjVme0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z20si5185604edx.292.2021.08.19.19.56.10; Thu, 19 Aug 2021 19:56:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZptjVme0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237758AbhHTCw5 (ORCPT + 99 others); Thu, 19 Aug 2021 22:52:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237810AbhHTCwv (ORCPT ); Thu, 19 Aug 2021 22:52:51 -0400 Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8964C061575; Thu, 19 Aug 2021 19:52:14 -0700 (PDT) Received: by mail-qt1-x830.google.com with SMTP id d9so6362603qty.12; Thu, 19 Aug 2021 19:52:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=u8qviJxekZI0W9oeMNNpxswXOhMmSMq6jYU5M5DVl1Y=; b=ZptjVme0tmW1VCpvcrBC2/CDLssJbqaoRo4Q3zTv2FyLpB1EZMmFxcHZevplDZTC3k ZZD4v6h9cJXEPhrfRVFXHzwSRzxdmJu2wmlK+IREiu4U7Indsy85FHIFCYBIt+asOOhr SHEt6lmnRXZIZF+LR/h7xVC0zG9KL4mApDQsaSX1EX712MuPJ2rDNR0leTpGBYI/Y6kg mA1Jqhha+IZdmuAvD/Z9bEBSL922Yg4LA610uR3FXVuSyrUiG/DctG3viXrnMZiVPzS3 Y39n5znGQqn523b3OML9qLFJTDpPdi1Hu5YzglGY+RSv07az1BiNjgtgVtqIEzlHFbPA 9epw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=u8qviJxekZI0W9oeMNNpxswXOhMmSMq6jYU5M5DVl1Y=; b=IGy94//JK2SANweg8s0iDH3hwzK8KjfL+8GF+xj3vwXw0kFW30tcYcEIAibj9z5FWK YFd1NL261xWlXKukYbNtzusXKm+E3p2EOaImsPZd74RHl8SK468HESop4C6E9UcHt17R np7RR2RF5zV72JrPN0x7hnrZ32NV4rWGVAFEC/RbruDC8dvOn960cCAPQRtXU4WBrJrw /5D2UgRS6d0u6UNs9dTjomsBlM3Ozw0bMkSVsIUDgWQXdaBduXBqt54tNhaAOsv+Vm2+ 9RUkQlIIPnwn+LuChB/h6wRPb9AXPfZaXCxgUYQWRgym3WHitLbO9mtc7H/yU7LcGFSq AfFQ== X-Gm-Message-State: AOAM531Il8nnPcD+W9qMiG0qi55OWWVJov9OqLOPztyfL35065/RJTJI 3XwNZouPrGw51Ptgq6vouKw= X-Received: by 2002:aed:2029:: with SMTP id 38mr15816652qta.71.1629427933928; Thu, 19 Aug 2021 19:52:13 -0700 (PDT) Received: from localhost.localdomain ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id 21sm2564270qkk.51.2021.08.19.19.52.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 19:52:13 -0700 (PDT) From: jing yangyang X-Google-Original-From: jing yangyang To: Heiko Carstens Cc: Vasily Gorbik , Christian Borntraeger , Vineeth Vijayan , Jiapeng Zhong , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, jing yangyang , Zeal Robot Subject: [PATCH linux-next] s390:fix Coccinelle warnings Date: Thu, 19 Aug 2021 19:51:59 -0700 Message-Id: <20210820025159.11914-1-jing.yangyang@zte.com.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org WARNING !A || A && B is equivalent to !A || B This issue was detected with the help of Coccinelle. Reported-by: Zeal Robot Signed-off-by: jing yangyang --- arch/s390/include/asm/scsw.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/s390/include/asm/scsw.h b/arch/s390/include/asm/scsw.h index a7c3ccf..754122d 100644 --- a/arch/s390/include/asm/scsw.h +++ b/arch/s390/include/asm/scsw.h @@ -691,9 +691,8 @@ static inline int scsw_tm_is_valid_pno(union scsw *scsw) { return (scsw->tm.fctl != 0) && (scsw->tm.stctl & SCSW_STCTL_STATUS_PEND) && - (!(scsw->tm.stctl & SCSW_STCTL_INTER_STATUS) || - ((scsw->tm.stctl & SCSW_STCTL_INTER_STATUS) && - (scsw->tm.actl & SCSW_ACTL_SUSPENDED))); + (!(scsw->tm.stctl & SCSW_STCTL_INTER_STATUS) || + (scsw->tm.actl & SCSW_ACTL_SUSPENDED)); } /** -- 1.8.3.1