Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1608286pxb; Thu, 28 Jan 2021 23:46:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRpnES83UL3QC9nPcJEUCXiHEPqtw1gTuj+PYfGfZCxcVp8Z8/P3jfMtZO1lC1QwH1GePm X-Received: by 2002:a17:906:6887:: with SMTP id n7mr3238173ejr.362.1611906370539; Thu, 28 Jan 2021 23:46:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611906370; cv=none; d=google.com; s=arc-20160816; b=uDgeDJwpaFK1HF8LlXKbO28v4MRXfKnVAwUu2E2T+Y1JqbsZHjx4PUgS8iqWn8fNco 5fbsL4ss8U6rA2MTTNE7A0RKukbdR2nz9rhEkuJ1uaLqkAW8frR5IclTTIKtGGrcF4/y m4u2t/EPooQsfyRf6wgZLQdaMLEs9JHHDAr+9LGdHqi4z4/h8GJV3048cIAYkTpKbD34 V6CqIJSSw9Zj71pNsXVRjUssniAnGiXg22ge8MRkP14agljK3XNdw7x1mu5dE6wzB+YR HCiZml70FMKW31IW71RwsArbxoWcWRL6+FnJ5QHxacKTWhComoBnDnXskWVYda+Op2oS 1KDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=M7hxWoJvwRtHvmN8339Tgp5CG5WJ8IsfTM2B9pBzhP4=; b=ERUUYfQnurStvOwTFmikyEH4Q4nsSaBHNlhnUfqiiOOP1b3SCiw5WWeDAEauhiN4ye GCDgYyh2W/c2LitouxCjvjQeaZxNvB0Spj8zioeuJYD58g5aaQ0qecBAXAMtBRlLy6+n 0YcvTvju7uRd/4p4LI+r67xjjU9mW7KJclyD7shrbbgRis1LtMrQ9PMMNbh0ppu9+fJD MGuMrzyRGsFFGvZegcY6gxr45/bWESeQYQrW5KtuQqGnSkBGceAXEVLVnOdYA4j01878 EEfAoYe/O8dxix9axs5Sq3OU8NWbJwSgyhf5c42x8K2U57JSylvQ0tc1eJI/E4A6JSfP uupg== 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=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h27si4486914ejd.660.2021.01.28.23.45.45; Thu, 28 Jan 2021 23:46:10 -0800 (PST) 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=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232327AbhA2HpR (ORCPT + 99 others); Fri, 29 Jan 2021 02:45:17 -0500 Received: from out30-44.freemail.mail.aliyun.com ([115.124.30.44]:33485 "EHLO out30-44.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232076AbhA2HpO (ORCPT ); Fri, 29 Jan 2021 02:45:14 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04400;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0UNCq90q_1611906249; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UNCq90q_1611906249) by smtp.aliyun-inc.com(127.0.0.1); Fri, 29 Jan 2021 15:44:29 +0800 From: Jiapeng Chong To: kashyap.desai@broadcom.com Cc: sumit.saxena@broadcom.com, shivasharan.srikanteshwara@broadcom.com, jejb@linux.ibm.com, martin.petersen@oracle.com, megaraidlinux.pdl@broadcom.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] Revert "Revert "scsi: megaraid_sas: Simplify the calculation of variables Date: Fri, 29 Jan 2021 15:44:08 +0800 Message-Id: <1611906248-57219-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warnings: ./drivers/scsi/megaraid/megaraid_sas_base.c:8644:30-32: WARNING !A || A && B is equivalent to !A || B. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- 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 63a4f48..dd26107 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) -- 1.8.3.1