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:
parent
ebe65334ab
commit
889bafe91b
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue