Hi Shachar, On Tue, Sep 05, 2017 at 01:04:38PM +0000, Shachar Beiser wrote: > return value is sometimes returned uninitialized > > Fixes: e1016cb73383 ("net/mlx5: fix Rx interrupts management") > Fixes: b18042fb8f49 ("net/mlx5: fix misplaced Rx interrupts functions") > > Cc: adrien.mazarg...@6wind.com > Cc: sta...@dpdk.org > > Signed-off-by: Shachar Beiser <shacha...@mellanox.com>
Looks like in both commits, ret is properly initialized so I'm wondering if the fixes line is right? Did you even get a compilation error? Otherwise, you should drop this patch from the series. > --- > drivers/net/mlx5/mlx5_rxq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/mlx5/mlx5_rxq.c b/drivers/net/mlx5/mlx5_rxq.c > index 437dc02..24887fb 100644 > --- a/drivers/net/mlx5/mlx5_rxq.c > +++ b/drivers/net/mlx5/mlx5_rxq.c > @@ -1330,7 +1330,7 @@ > struct priv *priv = mlx5_get_priv(dev); > struct rxq *rxq = (*priv->rxqs)[rx_queue_id]; > struct rxq_ctrl *rxq_ctrl = container_of(rxq, struct rxq_ctrl, rxq); > - int ret; > + int ret = 0; > > if (!rxq || !rxq_ctrl->channel) { > ret = EINVAL; > -- > 1.8.3.1 > -- Adrien Mazarguil 6WIND