From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 0A73C1B6D8 for ; Tue, 30 Jan 2018 23:56:34 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Jan 2018 14:56:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,436,1511856000"; d="scan'208";a="26766932" Received: from unknown (HELO localhost.localdomain) ([10.224.122.203]) by fmsmga001.fm.intel.com with ESMTP; 30 Jan 2018 14:56:32 -0800 From: Vipin Varghese To: dev@dpdk.org, nikhil.rao@intel.com Cc: deepak.k.jain@intel.com, Vipin Varghese Date: Wed, 31 Jan 2018 04:26:29 +0530 Message-Id: <1517352989-11720-1-git-send-email-vipin.varghese@intel.com> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH] event/rx_adapter: fix ignore return of event start X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jan 2018 22:56:36 -0000 Capture the return value for rte_event_dev_start. Return the result back to user. Coverity issue: 257000 Fixes: 9c38b704d280 ("eventdev: add eth Rx adapter implementation") Cc: nikhil.rao@intel.com Signed-off-by: Vipin Varghese --- lib/librte_eventdev/rte_event_eth_rx_adapter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_eventdev/rte_event_eth_rx_adapter.c b/lib/librte_eventdev/rte_event_eth_rx_adapter.c index 90106e6..a818bef 100644 --- a/lib/librte_eventdev/rte_event_eth_rx_adapter.c +++ b/lib/librte_eventdev/rte_event_eth_rx_adapter.c @@ -603,7 +603,7 @@ static uint16_t gcd_u16(uint16_t a, uint16_t b) RTE_EDEV_LOG_ERR("failed to configure event dev %u\n", dev_id); if (started) - rte_event_dev_start(dev_id); + ret = rte_event_dev_start(dev_id); return ret; } @@ -617,7 +617,7 @@ static uint16_t gcd_u16(uint16_t a, uint16_t b) conf->event_port_id = port_id; conf->max_nb_rx = 128; if (started) - rte_event_dev_start(dev_id); + ret = rte_event_dev_start(dev_id); rx_adapter->default_cb_arg = 1; return ret; } -- 1.9.1