Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4126980pxf; Tue, 16 Mar 2021 06:28:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyImb5WI1XnmrkiGldyhXm33RYkGUBBPbVhfNzzrnFQjT/NzGWABVQ92UWDWo0BixFXtpwj X-Received: by 2002:a17:907:2661:: with SMTP id ci1mr29193222ejc.403.1615901306965; Tue, 16 Mar 2021 06:28:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615901306; cv=none; d=google.com; s=arc-20160816; b=dxsIS/a/cku0i5dTz3sWkXzwvAKN/EYBi2ITr8XjaEmp8YOEbDqh4TwTy0pyYGD4jl zRBukhKWj7Isjw1WMdzvZH4/VGm23y8L3TunOrjvk4bnbVDYErW2TgfFC6EE3LY/MS+n B6FNBIw6utB/hF/0NTwU3UFavvnDHV31Q/+GEqY39HKfpPEyeGNzm91Z85QDYEfSmKfq 0eoohjA89cGyDhtrj13ExhrTPG7bLNTDNQvAI+tNZ0F8bwqnHdzzfLvujFu/NEVyYQH3 kld2tjCmZj8iOzbsdtAbU2ChZSOb2HkR8bSDZvbRt+ki2IdJa1mpFKlBaZcYEVggrqgP MgSg== 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=G54+O9QxKBqlupFgECocKQAts0GUXKaXLvowHYAqcmc=; b=YSbnAv+ROAZwtzDxRp6i9pRb3RFmEKWtWJzhpFs0g2CfM1b8Vqe5MEvY6S3MJAynY/ NSL1nBfC6orzBQw2wrNGR45mIvtSZXUubL2+m6Xlv8CTo3EtRC7vrIyxAbaeVVkhbWvf 4AosuodDljsLoPIUNwkrdQD/6dzf2ApsWc5YHFNmPfx4DlOsxLL++VWqWZwZhLukZDjy QtTz/pDhh0AsZgICehQXlFvsHL9wwqErVwwwZuLNJk2hxy7OU+BsHYTu4DpzyH3H73tO vQER0+NkNEPWlXioNWwAymKc62LptO3LmfF7cEOo77GJYteOHJ7vsOCe2H+XYSq7Uqw8 qr0g== 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 bu1si13414048edb.213.2021.03.16.06.28.04; Tue, 16 Mar 2021 06:28:26 -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=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232852AbhCPHtb (ORCPT + 99 others); Tue, 16 Mar 2021 03:49:31 -0400 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]:58046 "EHLO out30-57.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231724AbhCPHtF (ORCPT ); Tue, 16 Mar 2021 03:49:05 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;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=7;SR=0;TI=SMTPD_---0US7mNHE_1615880931; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0US7mNHE_1615880931) by smtp.aliyun-inc.com(127.0.0.1); Tue, 16 Mar 2021 15:49:03 +0800 From: Jiapeng Chong To: anil.gurumurthy@qlogic.com Cc: sudarsana.kalluru@qlogic.com, jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] scsi: bfa: fix warning comparing pointer to 0 Date: Tue, 16 Mar 2021 15:48:50 +0800 Message-Id: <1615880930-120780-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 warning: ./drivers/scsi/bfa/bfad_bsg.c:3412:29-30: WARNING comparing pointer to 0. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/scsi/bfa/bfad_bsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/bfa/bfad_bsg.c b/drivers/scsi/bfa/bfad_bsg.c index fc51542..be8dfbe 100644 --- a/drivers/scsi/bfa/bfad_bsg.c +++ b/drivers/scsi/bfa/bfad_bsg.c @@ -3409,7 +3409,7 @@ drv_fcxp->port = fcs_port->bfad_port; - if (drv_fcxp->port->bfad == 0) + if (!drv_fcxp->port->bfad) drv_fcxp->port->bfad = bfad; /* Fetch the bfa_rport - if nexus needed */ -- 1.8.3.1