From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Gabriel Carrillo Subject: [PATCH 0/1] eal: return true or false from lcore role check function Date: Wed, 3 Jan 2018 12:43:34 -0600 Message-ID: <1515005015-31990-1-git-send-email-erik.g.carrillo@intel.com> Cc: dev@dpdk.org To: pbhagavatula@caviumnetworks.com, harry.van.haaren@intel.com Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 522671B212 for ; Wed, 3 Jan 2018 19:43:44 +0100 (CET) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch updates the rte_lcore_has_role() function so that it returns true/false instead of success/failure, which seems more intuitive given the function name. There is currently one call site for rte_lcore_has_role() and the caller uses it (incorrectly) as though it returns true/false. The call site can be updated to use the existing definition instead, but this change can avoid similar misuses in the future. Erik Gabriel Carrillo (1): eal: return true or false from lcore role check function lib/librte_eal/common/eal_common_thread.c | 5 +---- lib/librte_eal/common/include/rte_lcore.h | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) -- 2.6.4