Skip to content

Commit

Permalink
net: qed: use true,false for bool variables
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jason Yan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
JasonYanHw authored and davem330 committed Sep 19, 2020
1 parent ebe6533 commit 889bafe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/net/ethernet/qlogic/qed/qed_rdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 889bafe

Please sign in to comment.