[v2,13/14] net/mlx4: use rte_pktmbuf_mtod_offset
Checks
Commit Message
Autogenerated with cocci/mtod-offset.cocci.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
drivers/net/mlx4/mlx4_rxtx.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
@@ -1014,9 +1014,9 @@ mlx4_tx_burst(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n)
* loopback in eSwitch, so that VFs and PF can
* communicate with each other.
*/
- srcrb.flags16[0] = *(rte_pktmbuf_mtod(buf, uint16_t *));
- ctrl->imm = *(rte_pktmbuf_mtod_offset(buf, uint32_t *,
- sizeof(uint16_t)));
+ srcrb.flags16[0] = *rte_pktmbuf_mtod(buf, uint16_t *);
+ ctrl->imm = *rte_pktmbuf_mtod_offset(buf, uint32_t *,
+ sizeof(uint16_t));
} else {
ctrl->imm = 0;
}