Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2993531pxb; Tue, 12 Jan 2021 03:50:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzw9vCFwdzIcFNBJP5ccc6P+MZAkElakHbXg6junCIwO9FHwsRIbuXQ84UU3T+nhApZPEbi X-Received: by 2002:a17:906:3099:: with SMTP id 25mr2928614ejv.321.1610452259155; Tue, 12 Jan 2021 03:50:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610452259; cv=none; d=google.com; s=arc-20160816; b=RtG40kCBMdaiTQnHAIl+aIjFIJKjlWPOn9UIDzX9z+QoJYl9Rw9n1P3OtHWJGEbJF0 6Q2jRO5D89C+uwCsfWxl79ka47uHyXh9ujCWJoi9mQqQ0NEnz4a32XNp2/pd16QxS2y5 jO5ty3FGRS2YHQxc6N2QEbA2S+Ql1MEm8AtURIdrJQ2BkAKry9hauKuyPXAggnst0mPE zBSEiKXjwVgwVOW9XoeM5mfhByAc4AccvR8TqlH/LQS3nzaqpe3Wowh6kYoQ+SUVR74T XgpOIen7EYiTlJU1mP/tiJ112u7Asu+a0mgbGabpcW0NepxBlKYOfxe0326o97qdUUi+ XURw== 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=6eFPP5onhI+OXMeniHAljO+o71m2LVO2x2XJLebr5Qk=; b=EAwHdh0X3aqC19hjrPal5AHvTFVp+UYqVach2lPYOuVxTEtfIv9k35gFHzlWXV4MWk 7luVE0d0QymYgwx5PSX7ctjF+9n+gWIS79LKsqKo2UQtWBTO/jP3Fabp3huFKMB9h1m3 tNvG6fLepKkqB2OBvuZX3OmapNpIliUOo5olts9Np/uxaqoN2fR2SHSxeE8M2oeVUIi5 w6FeZxoFyGUMRo8PPZURkbVCd9HKjnXe5iaAc86+7QPTpZmI7Ob6RFO7erwGLI5nobFD JyIA5cAeWoTSm4CCaitWoxVo4S+z1yKgTf0LflL42JFBtuaGHtjKkGB19lA1XWD/PXu3 ThKw== 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 c3si1173781eds.266.2021.01.12.03.50.35; Tue, 12 Jan 2021 03:50:59 -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 S2387871AbhALI0M (ORCPT + 99 others); Tue, 12 Jan 2021 03:26:12 -0500 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:32335 "EHLO out4436.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728511AbhALI0M (ORCPT ); Tue, 12 Jan 2021 03:26:12 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R501e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=abaci-bugfix@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0ULVraBj_1610439895; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:abaci-bugfix@linux.alibaba.com fp:SMTPD_---0ULVraBj_1610439895) by smtp.aliyun-inc.com(127.0.0.1); Tue, 12 Jan 2021 16:25:19 +0800 From: YANG LI To: jejb@linux.ibm.com Cc: martin.petersen@oracle.com, james.smart@broadcom.com, dick.kennedy@broadcom.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, YANG LI Subject: [PATCH] scsi: lpfc: style: Simplify bool comparison Date: Tue, 12 Jan 2021 16:24:53 +0800 Message-Id: <1610439893-64872-1-git-send-email-abaci-bugfix@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/lpfc/lpfc_bsg.c:5392:5-29: WARNING: Comparison to bool Reported-by: Abaci Robot Signed-off-by: YANG LI --- drivers/scsi/lpfc/lpfc_bsg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_bsg.c b/drivers/scsi/lpfc/lpfc_bsg.c index eed6ea5..b974d39 100644 --- a/drivers/scsi/lpfc/lpfc_bsg.c +++ b/drivers/scsi/lpfc/lpfc_bsg.c @@ -5376,9 +5376,9 @@ static int lpfc_bsg_check_cmd_access(struct lpfc_hba *phba, ras_fwlog = &phba->ras_fwlog; - if (ras_fwlog->ras_hwsupport == false) + if (!ras_fwlog->ras_hwsupport) return -EACCES; - else if (ras_fwlog->ras_enabled == false) + else if (!ras_fwlog->ras_enabled) return -EPERM; else return 0; -- 1.8.3.1