Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp28615pxb; Wed, 14 Apr 2021 08:41:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxn1NOvT2WSOvxyHljuusyj+HkeftSWcJF0xmvER4k2Y/eV9CngEYif4B2uWe2FxL6hVv90 X-Received: by 2002:a17:906:11ce:: with SMTP id o14mr17135454eja.113.1618414908571; Wed, 14 Apr 2021 08:41:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618414908; cv=none; d=google.com; s=arc-20160816; b=a0WKQjWzrB5/zvtwY5xEKiX6I474m1PK9tFxXWUZgv+Jhh33BfPnIrx1Of6A4UqYu+ cx/b3XoD+MhewXQbaJkGUXif5eOLI1MuxnvcRqzKyf6ymlDF4F12pQbqjwFxJ3u79VpJ hEaX/R6rjbdTX0bF9/T/c/RN6Olj0bEeZ4bsDu/Wq9LhA30hwMEwjxJ9EqoOWmTyxOKm fq62LBdNf5X6wpWcjQRkE86wNDbEy7HgZJyBB09dAIxuaIhCVR6Xr/BeUUmPK38LtPf6 FPfPMFqdxGffk5vng0x7I7KwC0IzkVxtFOxytbw2dugDjIZqcLow0s6McBfa4glkz8nB bzJA== 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; bh=4Ri9w0OJDdzKNOlrwnXr4rdwAmCeGt2iPrrMytfcm40=; b=GUdonTaapeq+h3eOFBD9tW4cMBJxCJffFYYRvNnx1I2eokx6b0wuoLf6M+YCmNjD1U RZR3F0L28wQPcjbLRiGUjOymQTWTxD02dDaAe/yPFoL6DeIuD4Gq+qU3xAukQn++eCtR ZZ/m2Y7dHLi1G5jtUdd6LP4CT9KoWbQT7/p9FMVqVJ9HGp9q7LTLXzmXb7Pn2dcF/ntN fAnjZgcHJwE+2WJE9EVaht+Vuq/eVg36cj6AIwyRQQfXaKIMj3FaO9v6vjffv2G8j9bQ qMJbvec9rgz2vm4tktc+pp8bGUbCuW08DKaN8l6g80b+yn2LotNAtKsUP5rajUjSm/Fj axjA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a62si12873151edf.180.2021.04.14.08.41.18; Wed, 14 Apr 2021 08:41:48 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350738AbhDNMRz (ORCPT + 99 others); Wed, 14 Apr 2021 08:17:55 -0400 Received: from mail-m17635.qiye.163.com ([59.111.176.35]:20660 "EHLO mail-m17635.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231849AbhDNMRy (ORCPT ); Wed, 14 Apr 2021 08:17:54 -0400 Received: from wanjb-virtual-machine.localdomain (unknown [36.152.145.182]) by mail-m17635.qiye.163.com (Hmail) with ESMTPA id B71FD40039D; Wed, 14 Apr 2021 20:17:31 +0800 (CST) From: Wan Jiabing To: Nilesh Javali , Manish Rangankar , GR-QLogic-Storage-Upstream@marvell.com, "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kael_w@yeah.net, Wan Jiabing Subject: [PATCH] scsi: qla4xxx: Simplify judgement condition Date: Wed, 14 Apr 2021 20:17:26 +0800 Message-Id: <20210414121726.12503-1-wanjiabing@vivo.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZGU0dSlZPGEtLQxhLTh0fGE5VEwETFhoSFyQUDg9ZV1kWGg8SFR0UWUFZT0tIVUpKS0 hKTFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6K006OAw4OT8LChMRLxopSgIw MAIwCxBVSlVKTUpDT0tJTU5JSUlOVTMWGhIXVQwaFRESGhkSFRw7DRINFFUYFBZFWVdZEgtZQVlI TVVKTklVSk9OVUpDSVlXWQgBWUFJS01MNwY+ X-HM-Tid: 0a78d050aefdd991kuwsb71fd40039d Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: ./drivers/scsi/qla4xxx/ql4_83xx.c:475:23-25: WARNING !A || A && B is equivalent to !A || B Signed-off-by: Wan Jiabing --- drivers/scsi/qla4xxx/ql4_83xx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/qla4xxx/ql4_83xx.c b/drivers/scsi/qla4xxx/ql4_83xx.c index 5f56122f6664..db41d90a5b6e 100644 --- a/drivers/scsi/qla4xxx/ql4_83xx.c +++ b/drivers/scsi/qla4xxx/ql4_83xx.c @@ -472,8 +472,7 @@ int qla4_83xx_can_perform_reset(struct scsi_qla_host *ha) } else if (device_map[i].device_type == ISCSI_CLASS) { if (drv_active & (1 << device_map[i].func_num)) { if (!iscsi_present || - (iscsi_present && - (iscsi_func_low > device_map[i].func_num))) + iscsi_func_low > device_map[i].func_num) iscsi_func_low = device_map[i].func_num; iscsi_present++; -- 2.25.1