From: Adrien Mazarguil Date: Thu, 12 Oct 2017 12:19:36 +0000 (+0200) Subject: net/mlx4: fix invalid errno value sign X-Git-Tag: spdx-start~1350 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c8912bec52519027fb09aa17b4efc37870996aed;p=dpdk.git net/mlx4: fix invalid errno value sign Tx queue elements allocation function sets rte_errno properly and returns its negative version. Reassigning this value to rte_errno is thus both invalid and unnecessary. Fixes: 9d14b27308a0 ("net/mlx4: standardize on negative errno values") Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- diff --git a/drivers/net/mlx4/mlx4_txq.c b/drivers/net/mlx4/mlx4_txq.c index c1fdbaf4cd..3cece3e485 100644 --- a/drivers/net/mlx4/mlx4_txq.c +++ b/drivers/net/mlx4/mlx4_txq.c @@ -340,7 +340,6 @@ mlx4_txq_setup(struct rte_eth_dev *dev, struct txq *txq, uint16_t desc, } ret = mlx4_txq_alloc_elts(&tmpl, desc); if (ret) { - rte_errno = ret; ERROR("%p: TXQ allocation failed: %s", (void *)dev, strerror(rte_errno)); goto error;