From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9644E42CD9; Fri, 16 Jun 2023 13:06:51 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2381840DDB; Fri, 16 Jun 2023 13:06:51 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 10A1A40A7A for ; Fri, 16 Jun 2023 13:06:48 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35G7U1rp029738 for ; Fri, 16 Jun 2023 04:06:48 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=xRiRb/NtAbGHdBT6bzL9cnwc35oZGzOVS3rvlNDCuJk=; b=VVjRU62eY7q2T/pM7nTbssdnG7HznmErVeF+80rFfsLWWXWDo5aV8zKHy+pfqMP4F05a lB1abx6qN7yMcgrGM9GqePevk5RoN/ls+xX1pYKXkknp7Tb6lwlZ3DNoqd0aPEu+g9IJ hTM1piJj40cMurPTY2WEHBxrKytXjtEC97oxlsRxm2OCde8uych2lQ2UrLivNtI4WL/3 In6oTrpznKnfpg26aO0FI+LXk60wPlcgf39T8BobAcOuOnOU9H79xHtYEu0wXZpowAXO EAgYsj7SG01r7hywWOBbVkNnqdlZZlDrdzq9fAQpIJCDie4yUH8kg1EcZzy9GyDWZfTA /A== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3r7ky1xn3p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 16 Jun 2023 04:06:48 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Fri, 16 Jun 2023 04:06:46 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Fri, 16 Jun 2023 04:06:46 -0700 Received: from localhost.localdomain (unknown [10.28.36.157]) by maili.marvell.com (Postfix) with ESMTP id 6E4313F7062; Fri, 16 Jun 2023 04:06:44 -0700 (PDT) From: Amit Prakash Shukla To: Nithin Dabilpuram , Pavan Nikhilesh CC: , , Amit Prakash Shukla Subject: [PATCH] lib: fix coverity for unused variable Date: Fri, 16 Jun 2023 16:36:40 +0530 Message-ID: <20230616110640.3642684-1-amitprakashs@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: 7rgNyOoefU8S5BgX32P5Fn7tbpiT3eKC X-Proofpoint-ORIG-GUID: 7rgNyOoefU8S5BgX32P5Fn7tbpiT3eKC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-16_07,2023-06-16_01,2023-05-22_02 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Removed variable "rc" that stored a return value from a function rte_lpm6_lookup_bulk_func. Coverity issue: 385595 Fixes: 20365d793e45 ("node: add IPv6 lookup node") Signed-off-by: Amit Prakash Shukla --- lib/node/ip6_lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node/ip6_lookup.c b/lib/node/ip6_lookup.c index e4bbc7ed67..2b20194295 100644 --- a/lib/node/ip6_lookup.c +++ b/lib/node/ip6_lookup.c @@ -135,7 +135,7 @@ ip6_lookup_node_process_scalar(struct rte_graph *graph, struct rte_node *node, node_mbuf_priv1(mbuf3, dyn)->ttl = ipv6_hdr->hop_limits; rte_memcpy(ip_batch[3], ipv6_hdr->dst_addr, 16); - rc = rte_lpm6_lookup_bulk_func(lpm6, ip_batch, next_hop, 4); + rte_lpm6_lookup_bulk_func(lpm6, ip_batch, next_hop, 4); next_hop[0] = (next_hop[0] < 0) ? (int32_t)drop_nh : next_hop[0]; node_mbuf_priv1(mbuf0, dyn)->nh = (uint16_t)next_hop[0]; -- 2.25.1