IB/hfil: Delete unused bypass flags
Subsystems (2)
PATCH 1/1 IB/hfil: Delete unused bypass flags
Clean up unused bypass variables in verbs.
--- drivers/infiniband/hw/hfi1/verbs.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/infiniband/hw/hfi1/verbs.c +0 -4
@@ -891,14 +891,12 @@ int hfi1_verbs_send_dma(struct rvt_qp *qp, struct hfi1_pkt_state *ps,u8 sc5 = priv->s_sc;int ret;u32 dwords; -bool bypass = false;if (ps->s_txreq->phdr.hdr.hdr_type) {u8 extra_bytes =hfi1_get_16b_padding ((hdrwords <<2 ), len); dwords = (len + extra_bytes + (SIZE_OF_CRC <<2 ) +SIZE_OF_LT ) >>2 ; - bypass = true; }else { dwords = (len +3 ) >>2 ; }
@@ -1034,7 +1032,6 @@ int hfi1_verbs_send_pio(struct rvt_qp *qp, struct hfi1_pkt_state *ps,int ret =0 ;pio_release_cb cb =NULL ;u32 lrh0_16b; -bool bypass = false;u8 extra_bytes =0 ;if (ps->s_txreq->phdr.hdr.hdr_type) {
@@ -1044,7 +1041,6 @@ int hfi1_verbs_send_pio(struct rvt_qp *qp, struct hfi1_pkt_state *ps, dwords = (len + extra_bytes) >>2 ; hdr = (u32 *)&ps->s_txreq->phdr.hdr.opah; lrh0_16b = ps->s_txreq->phdr.hdr.opah.lrh[0 ]; - bypass = true; }else { dwords = (len +3 ) >>2 ; hdr = (u32 *)&ps->s_txreq->phdr.hdr.ibh;
Signature · 1 line
2.7.4
Quoted 35 lines · Christos Gkekas
Clean up unused bypass variables in verbs.
Signed-off-by Christos Gkekas <[email protected]>--- drivers/infiniband/hw/hfi1/verbs.c | 4 ---- 1 file changed, 4 deletions(-)drivers/infiniband/hw/hfi1/verbs.c +0
-3@@ -891,14 +891,12 @@ int hfi1_verbs_send_dma(struct rvt_qp *qp, struct hfi1_pkt_state *ps,u8 sc5 = priv->s_sc;int ret;u32 dwords; -bool bypass = false;if (ps->s_txreq->phdr.hdr.hdr_type) {u8 extra_bytes =hfi1_get_16b_padding ((hdrwords <<2 ), len); dwords = (len + extra_bytes + (SIZE_OF_CRC <<2 ) +SIZE_OF_LT ) >>2 ; - bypass = true; }else { dwords = (len +3 ) >>2 ; }@@ -1034,7 +1032,6 @@ int hfi1_verbs_send_pio(struct rvt_qp *qp, struct hfi1_pkt_state *ps,int ret =0 ;pio_release_cb cb =NULL ;u32 lrh0_16b; -bool bypass = false;u8 extra_bytes =0 ;if (ps->s_txreq->phdr.hdr.hdr_type) {
drivers/infiniband/hw/hfi1/verbs.c int hfi1_verbs_send_pio(struct rvt_qp *qp, struct hfi1_pkt_state *ps, · line 1046
Quoted 7 lines
drivers/infiniband/hw/hfi1/verbs.c +0
-1@@ -1044,7 +1041,6 @@ int hfi1_verbs_send_pio(struct rvt_qp *qp, struct hfi1_pkt_state *ps, dwords = (len + extra_bytes) >>2 ; hdr = (u32 *)&ps->s_txreq->phdr.hdr.opah; lrh0_16b = ps->s_txreq->phdr.hdr.opah.lrh[0 ]; - bypass = true; }else { dwords = (len +3 ) >>2 ; hdr = (u32 *)&ps->s_txreq->phdr.hdr.ibh;
Thanks! Those were useful at one time. ;-)
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 47 lines · Don Hiatt
Quoted 41 lines · Christos Gkekas
Clean up unused bypass variables in verbs.
Signed-off-by Christos Gkekas <[email protected]>---
drivers/infiniband/hw/hfi1/verbs.c| 4 ----1 file changed, 4 deletions(-)drivers/infiniband/hw/hfi1/verbs.c +0
-1@@ -891,14 +891,12 @@ int hfi1_verbs_send_dma(struct rvt_qp *qp,struct hfi1_pkt_state *ps, u8 sc5 = priv->s_sc; int ret; u32 dwords; - bool bypass = false; if (ps->s_txreq->phdr.hdr.hdr_type) { u8 extra_bytes = hfi1_get_16b_padding((hdrwords << 2), len);dwords = (len +
extra_bytes+ (SIZE_OF_CRC<< 2) +SIZE_OF_LT) >> 2;
- bypass = true;
} else {
dwords = (len + 3) >> 2;
}drivers/infiniband/hw/hfi1/verbs.c +0
-2@@ -1034,7 +1032,6 @@ int hfi1_verbs_send_pio(struct rvt_qp *qp,struct hfi1_pkt_state *ps, int ret = 0; pio_release_cb cb = NULL; u32 lrh0_16b; - bool bypass = false; u8 extra_bytes = 0; if (ps->s_txreq->phdr.hdr.hdr_type) {@@ -1044,7 +1041,6 @@ int hfi1_verbs_send_pio(struct rvt_qp *qp,struct hfi1_pkt_state *ps, dwords = (len + extra_bytes) >> 2; hdr = (u32 *)&ps->s_txreq->phdr.hdr.opah; lrh0_16b = ps->s_txreq->phdr.hdr.opah.lrh[0]; - bypass = true; } else { dwords = (len + 3) >> 2;Quoted 1 line
hdr = (u32 *)&ps->s_txreq->phdr.hdr.ibh;
Thanks! Those were useful at one time. ;-)
Quoted 2 lines
Reviewed-by Don Hiatt <[email protected]>
Thanks, but this is already handled by a patch submitted by Bart. See:
https://marc.info/?l=linux-rdma&m=150774420313310&w=2
His patch catches a few other variables in those same functions.
-Denny
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html