From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 77C7F374F for ; Tue, 5 Sep 2017 15:04:48 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE1 (envelope-from shacharbe@mellanox.com) with ESMTPS (AES256-SHA encrypted); 5 Sep 2017 16:04:45 +0300 Received: from pegasus08.mtr.labs.mlnx (pegasus08.mtr.labs.mlnx [10.210.16.114]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id v85D4jWI016380; Tue, 5 Sep 2017 16:04:45 +0300 Received: from pegasus08.mtr.labs.mlnx (localhost [127.0.0.1]) by pegasus08.mtr.labs.mlnx (8.14.7/8.14.7) with ESMTP id v85D4j2Y019597; Tue, 5 Sep 2017 13:04:45 GMT Received: (from shacharbe@localhost) by pegasus08.mtr.labs.mlnx (8.14.7/8.14.7/Submit) id v85D4j78019596; Tue, 5 Sep 2017 13:04:45 GMT From: Shachar Beiser To: dev@dpdk.org Cc: Shachar Beiser , Adrien Mazarguil , Nelio Laranjeiro , stable@dpdk.org Date: Tue, 5 Sep 2017 13:04:38 +0000 Message-Id: X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <0027cb81572aa683b0db357dbfc62e810f1ae4c8.1504616614.git.shacharbe@mellanox.com> References: <0027cb81572aa683b0db357dbfc62e810f1ae4c8.1504616614.git.shacharbe@mellanox.com> In-Reply-To: References: Subject: [dpdk-stable] [PATCH v2 3/3] net/mlx5: fix interrupt enable return value X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Sep 2017 13:04:48 -0000 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.mazarguil@6wind.com Cc: stable@dpdk.org Signed-off-by: Shachar Beiser --- 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