use_dseg label can be deleted as it happens without goto. Signed-off-by: Elad Persiko <ela...@mellanox.com> --- drivers/net/mlx5/mlx5_rxtx.c | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-)
diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index be38aed..1560530 100644 --- a/drivers/net/mlx5/mlx5_rxtx.c +++ b/drivers/net/mlx5/mlx5_rxtx.c @@ -505,7 +505,6 @@ if ((uintptr_t)dseg >= end) dseg = (volatile rte_v128u32_t *) txq->wqes; - goto use_dseg; } else if (!segs_n) { goto next_pkt; } else { @@ -523,19 +522,18 @@ dseg = (volatile rte_v128u32_t *) ((uintptr_t)wqe + (3 * MLX5_WQE_DWORD_SIZE)); ds = 3; -use_dseg: - /* Add the remaining packet as a simple ds. */ - addr = htonll(addr); - *dseg = (rte_v128u32_t){ - htonl(length), - txq_mp2mr(txq, txq_mb2mp(buf)), - addr, - addr >> 32, - }; - ++ds; - if (!segs_n) - goto next_pkt; } + /* Add the remaining packet as a simple ds. */ + addr = htonll(addr); + *dseg = (rte_v128u32_t){ + htonl(length), + txq_mp2mr(txq, txq_mb2mp(buf)), + addr, + addr >> 32, + }; + ++ds; + if (!segs_n) + goto next_pkt; next_seg: assert(buf); assert(ds); -- 1.8.3.1