net: qed: use true,false for bool variables

This addresses the following coccinelle warning:

drivers/net/ethernet/qlogic/qed/qed_rdma.c:1465:2-13: WARNING:
Assignment of 0/1 to bool variable
drivers/net/ethernet/qlogic/qed/qed_rdma.c:1468:2-14: WARNING:
Assignment of 0/1 to bool variable
drivers/net/ethernet/qlogic/qed/qed_rdma.c:1471:2-13: WARNING:
Assignment of 0/1 to bool variable
drivers/net/ethernet/qlogic/qed/qed_rdma.c:1472:2-14: WARNING:
Assignment of 0/1 to bool variable

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Jason Yan 2020-09-19 15:45:43 +08:00 committed by David S. Miller
parent ebe65334ab
commit 889bafe91b
1 changed files with 4 additions and 4 deletions

View File

@ -1462,14 +1462,14 @@ static int qed_rdma_modify_qp(void *rdma_cxt,
switch (qp->qp_type) {
case QED_RDMA_QP_TYPE_XRC_INI:
qp->has_req = 1;
qp->has_req = true;
break;
case QED_RDMA_QP_TYPE_XRC_TGT:
qp->has_resp = 1;
qp->has_resp = true;
break;
default:
qp->has_req = 1;
qp->has_resp = 1;
qp->has_req = true;
qp->has_resp = true;
}
if (QED_IS_IWARP_PERSONALITY(p_hwfn)) {