Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2401367pxb; Tue, 13 Apr 2021 00:35:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzen9D4xB4NxkK+O00y4MtAzqu/x5l1vTowx+pCDYdsLY1zq53yG2sBkEkFsbiC+N6Q2Jcz X-Received: by 2002:a17:907:720a:: with SMTP id dr10mr30528841ejc.375.1618299303337; Tue, 13 Apr 2021 00:35:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618299303; cv=none; d=google.com; s=arc-20160816; b=OTv9GVtY55Yiv83144w0IZl5nLbUQcbUNAVpiH0Mh1Ds2rYzXrwECzt1jirK9Xl+uB kRaXQQvD6gbwojy/gmcgN9AZelYkXNVa4YSoUGjoIAackpa9dzepORiusos+kYYa/hJk Fw5L5smRLTD7REu074DnqzxranXtZfQbMwaAonmT9zz3tJwGrGlE/IH2pwEvWNjP6T40 2YyBPar6QTHUeNaOtwLCtH2XzPNo9CdoAAgu9bqKxAuv1y8vUis4Vsh8eraSC9EQiKJp GgRmpGqo9TWS59P3hLMW/7jmqXRS8kUdzyKihJoS5DwKKcRsIAqbahHC7sOpPIH0Dnpn k/zA== 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=ah16lfiWm5WSDsVulV05ayjPIRYY7WGu/g8JWuxLd1Q=; b=D9oXzfPXRmd4EdqN/cnK3bvihMXL04aaHvv3yDk3fD2xduy4Iii9TXQjWtX114HabR p11KdON027I6WkSS5Uw/wuNtP7099vm6xJXi3k3rq1Oe5BHHu/7FL6sIFueYdASIejlr 7Sx5G1n2h/45STUTR3+z4q0XnOm36uVOFBSvv0B1Cq41xVzxqDHF/bEuVEBY9lP7wLpv KGIiWAum8nr9bPRE50wZiQimxMNTi1bHmWvFyjAUPm25R674j/T1c7RfMdke4jB9l+aa k/0BTmBoRMgnKY9wLPkMqIDRFliAtqqV6YugI29Po6XeriTtWFy/mcQpTJBOQ666+26L aFMA== 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 kq9si4189995ejb.12.2021.04.13.00.34.40; Tue, 13 Apr 2021 00:35:03 -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 S238682AbhDLXxr (ORCPT + 99 others); Mon, 12 Apr 2021 19:53:47 -0400 Received: from mail-m17635.qiye.163.com ([59.111.176.35]:42250 "EHLO mail-m17635.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237250AbhDLXxq (ORCPT ); Mon, 12 Apr 2021 19:53:46 -0400 Received: from wanjb-KLV-WX9.lan (unknown [60.232.195.58]) by mail-m17635.qiye.163.com (Hmail) with ESMTPA id A8AC94000DA; Tue, 13 Apr 2021 07:53:25 +0800 (CST) From: Wan Jiabing To: Kashyap Desai , Sumit Saxena , Shivasharan S , "James E.J. Bottomley" , "Martin K. Petersen" , megaraidlinux.pdl@broadcom.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kael_w@yeah.net, Wan Jiabing Subject: [PATCH] scsi: megraraid: Simplify judgement condition Date: Tue, 13 Apr 2021 07:53:16 +0800 Message-Id: <20210412235317.45040-1-wanjiabing@vivo.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZGkJKQlZMHh0YTx1PTU0aSEpVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWUFZT0tIVUpKS0 hKTFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6NS46Iyo5HT8ITx4hER4sLSoW CTIKFB9VSlVKTUpDSUxKTUtNTk1IVTMWGhIXVQwaFRESGhkSFRw7DRINFFUYFBZFWVdZEgtZQVlN S1VJSElVSkJOVU5DWVdZCAFZQUlJTUo3Bg++ X-HM-Tid: 0a78c88115aed991kuwsa8ac94000da Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: ./drivers/scsi/megaraid/megaraid_sas_base.c:8644:30-32: WARNING !A || A && B is equivalent to !A || B Signed-off-by: Wan Jiabing --- drivers/scsi/megaraid/megaraid_sas_base.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c index 63a4f48bdc75..5c17bbca95d0 100644 --- a/drivers/scsi/megaraid/megaraid_sas_base.c +++ b/drivers/scsi/megaraid/megaraid_sas_base.c @@ -8641,8 +8641,7 @@ int megasas_update_device_list(struct megasas_instance *instance, if (event_type & SCAN_VD_CHANNEL) { if (!instance->requestorId || - (instance->requestorId && - megasas_get_ld_vf_affiliation(instance, 0))) { + megasas_get_ld_vf_affiliation(instance, 0)) { dcmd_ret = megasas_ld_list_query(instance, MR_LD_QUERY_TYPE_EXPOSED_TO_HOST); if (dcmd_ret != DCMD_SUCCESS) -- 2.30.2