IB/isert: Fix warning Comparison to bool
Subsystems (3)
PATCH 1/1 IB/isert: Fix warning Comparison to bool
Fix below warning reported by coccicheck:
./ib_isert.c:1104:12-24: WARNING: Comparison to bool
Reported-by Hulk Robot <[email protected]>
Signed-off-by Zou Wei <[email protected]>
--- drivers/infiniband/ulp/isert/ib_isert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/ulp/isert/ib_isert.c +1 -1
@@ -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);
Signature · 1 line
2.6.2
Reviewed-by Sagi Grimberg <[email protected]>
Quoted 10 lines · Zou Wei
Fix below warning reported by coccicheck:
./ib_isert.c:1104:12-24: WARNING: Comparison to bool
Reported-by Hulk Robot <[email protected]>Signed-off-by Zou Wei <[email protected]>Reviewed-by Sagi Grimberg <[email protected]>--- drivers/infiniband/ulp/isert/ib_isert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to for-next, thanks
Jason