From: Jasvinder Singh Subject: [PATCH v4 12/49] librte_table/acl: remove incorrect check Date: Thu, 29 Mar 2018 19:31:31 +0100 Message-ID: <20180329183208.103844-13-jasvinder.singh@intel.com> References: <20180316175906.159198-2-jasvinder.singh@intel.com> <20180329183208.103844-1-jasvinder.singh@intel.com> Cc: cristian.dumitrescu@intel.com To: dev@dpdk.org Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 93A334F9A for ; Thu, 29 Mar 2018 20:32:23 +0200 (CEST) In-Reply-To: <20180329183208.103844-1-jasvinder.singh@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Remove wrong check for table entry pointer. Signed-off-by: Cristian Dumitrescu Signed-off-by: Jasvinder Singh --- lib/librte_table/rte_table_acl.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/librte_table/rte_table_acl.c b/lib/librte_table/rte_table_acl.c index 73d3910..14d5401 100644 --- a/lib/librte_table/rte_table_acl.c +++ b/lib/librte_table/rte_table_acl.c @@ -472,12 +472,6 @@ rte_table_acl_entry_add_bulk( return -EINVAL; } - if (entries_ptr[i] == NULL) { - RTE_LOG(ERR, TABLE, "%s: entries_ptr[%" PRIu32 "] parameter is NULL\n", - __func__, i); - return -EINVAL; - } - rule = keys[i]; if (rule->priority > RTE_ACL_MAX_PRIORITY) { RTE_LOG(ERR, TABLE, "%s: Priority is too high\n", __func__); -- 2.9.3