Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp441450pxb; Tue, 3 Nov 2020 03:50:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwF567CM1wuXUjKT+ELlxsEcgO+MMz4BAnvUbiujPtgW/DuRCRdH19ilrn77IDpPG9WDbrX X-Received: by 2002:a17:906:170f:: with SMTP id c15mr20520459eje.347.1604404202468; Tue, 03 Nov 2020 03:50:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604404202; cv=none; d=google.com; s=arc-20160816; b=CY2l9XNtdwA6FGfrI89DTtEAt49ekjIn2jffUp8qtXBWshJP+C2MeJCnuX54Rvzma0 2scK8NoT6lhGhFuCbD1qh3mdCZ/eDIwA8vOaoo9YJN6ldl8gIwAA/xwrafdzLBiysaIY 8hEh9CWAMP/ZMAhKNj59J4RSxs4Um2yM3oAaGIOoLy4NXypmn9hURU3hiymt5Vlr8VzH yZqxw1yBVHgBT5AwncGNv0ZkFo6wWSJwHyqXLV0CbiXUBe5m1txFYEhFeRjBCxICWgVq P27f1d1nRrNl5CwyzAIzcAxpmWhezYnm6Vo4STfVSu8el9oytvWMu4eBe114Z5SrjA5l IBEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=IJxe+m8UmaNs871sxxOrf7BFxpFiNBJxOfrINYaXhJo=; b=W3QcKMeI+9ISSHVw5WIAzcuhhkaY9xqS95lP+edNdHDHyPhJiRpneC/Bz8FMfwGtge FeGmiyssy2fSIoB61DeyGaR1GFqq6hKAvy7RTRfwPNS6hfDrsCFGaGnQ/DJeorQrBa/W bccz4e4wxZPDMU+DBUTr+b6HLBlij75Ykt49px34LSZqeRR4Yl/uWnN2ddmas8q1lDU+ M/MiiWEoqxNQWHXSCs1AHfiq8JakD8G0/SUU1usMD/oLEFa52HkTIHcdsMBYPmbtSOOJ 5qpYPVn+zuMJuF7cPXPemDxMGBmNQwfwfSrVm0tTZi/uL9ncCsdsfBaXde4Ta/Q0RW+j HPFA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k17si16161268eds.579.2020.11.03.03.49.40; Tue, 03 Nov 2020 03:50:02 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728548AbgKCLqL (ORCPT + 99 others); Tue, 3 Nov 2020 06:46:11 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:7411 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727988AbgKCLqL (ORCPT ); Tue, 3 Nov 2020 06:46:11 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4CQSfP1fFFz71yY; Tue, 3 Nov 2020 19:46:05 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Tue, 3 Nov 2020 19:45:58 +0800 From: Zou Wei To: , , CC: , , , Zou Wei Subject: [PATCH -next] IB/isert: Fix warning Comparison to bool Date: Tue, 3 Nov 2020 19:57:54 +0800 Message-ID: <1604404674-32998-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix below warning reported by coccicheck: ./ib_isert.c:1104:12-24: WARNING: Comparison to bool Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/infiniband/ulp/isert/ib_isert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c index bd47894..e47cd02 100644 --- a/drivers/infiniband/ulp/isert/ib_isert.c +++ b/drivers/infiniband/ulp/isert/ib_isert.c @@ -1101,7 +1101,7 @@ isert_handle_scsi_cmd(struct isert_conn *isert_conn, sequence_cmd: rc = iscsit_sequence_cmd(conn, cmd, buf, hdr->cmdsn); - if (!rc && dump_payload == false && unsol_data) + if (!rc && !dump_payload && unsol_data) iscsit_set_unsolicited_dataout(cmd); else if (dump_payload && imm_data) target_put_sess_cmd(&cmd->se_cmd); -- 2.6.2