mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
IB/isert: Do not excplicitly check == false for bool
It is not the kernel style, warning reported by coccicheck: ./ib_isert.c:1104:12-24: WARNING: Comparison to bool Link: https://lore.kernel.org/r/1604404674-32998-1-git-send-email-zou_wei@huawei.com Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Zou Wei <zou_wei@huawei.com> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
This commit is contained in:
parent
b2d2440430
commit
f7a95c902b
1 changed files with 1 additions and 1 deletions
|
@ -1101,7 +1101,7 @@ isert_handle_scsi_cmd(struct isert_conn *isert_conn,
|
||||||
sequence_cmd:
|
sequence_cmd:
|
||||||
rc = iscsit_sequence_cmd(conn, cmd, buf, hdr->cmdsn);
|
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);
|
iscsit_set_unsolicited_dataout(cmd);
|
||||||
else if (dump_payload && imm_data)
|
else if (dump_payload && imm_data)
|
||||||
target_put_sess_cmd(&cmd->se_cmd);
|
target_put_sess_cmd(&cmd->se_cmd);
|
||||||
|
|
Loading…
Reference in a new issue