From mboxrd@z Thu Jan 1 00:00:00 1970 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) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jan 2018 10:43:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,503,1508828400"; d="scan'208";a="16546020" Received: from txasoft-yocto.an.intel.com (HELO txasoft-yocto.an.intel.com.) ([10.123.72.111]) by FMSMGA003.fm.intel.com with ESMTP; 03 Jan 2018 10:43:42 -0800 From: Erik Gabriel Carrillo To: pbhagavatula@caviumnetworks.com, harry.van.haaren@intel.com Cc: dev@dpdk.org Date: Wed, 3 Jan 2018 12:43:34 -0600 Message-Id: <1515005015-31990-1-git-send-email-erik.g.carrillo@intel.com> X-Mailer: git-send-email 1.7.10 Subject: [dpdk-dev] [PATCH 0/1] eal: return true or false from lcore role check function 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: Wed, 03 Jan 2018 18:43:45 -0000 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