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 01D8841E73; Sat, 11 Mar 2023 15:57:12 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E5CA74113D; Sat, 11 Mar 2023 15:57:11 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id D2CB74113D for ; Sat, 11 Mar 2023 15:57:10 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32BErYhB003889 for ; Sat, 11 Mar 2023 06:57:10 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0220; bh=87f2xW40aEjvNxGnADeErG6bur4OC5WDdz0HHqMU3OI=; b=UqbMiu9t1sklyhLwlxJuJ/TMM2uTz8KhRSxP+CWCGuVo+RQ0ibWk09p9R63bYNiVz/zz 5BlCEXY2E24BWWF0CmkSz+OAJjRd7mp3yl1xe9nOfi2kcewtkWxPrhQCMz9zBFpY4YNr DzV6Ej/Vr4P2P7KTg0zHFgBtKHtIi37pAoSwhL1ju8s3nmzI6rHX8Zmw8k4X3oYeO78w VK2xes6pOBStXoK/qQ4A01tuIkTlAsQBO1bFnKhE2D6w+kGUkrgr64w/PrEpdotWFt5Z lBNA+0H0RoyAJABInDCMMvoxIN+cCDkrfHxgzfpiGbNMuND9VS65EzyD//WvomZRpDYZ Pg== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3p8qvv8edf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Sat, 11 Mar 2023 06:57:09 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Sat, 11 Mar 2023 06:57:08 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.42 via Frontend Transport; Sat, 11 Mar 2023 06:57:08 -0800 Received: from ml-host-33.caveonetworks.com (unknown [10.110.143.233]) by maili.marvell.com (Postfix) with ESMTP id D302C3F7075; Sat, 11 Mar 2023 06:57:07 -0800 (PST) From: Srikanth Yalavarthi To: Srikanth Yalavarthi , Jerin Jacob CC: , Subject: [PATCH] mldev: remove variable self assignment in dev init Date: Sat, 11 Mar 2023 06:57:04 -0800 Message-ID: <20230311145705.9178-1-syalavarthi@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-ORIG-GUID: faLiNMsPb0AwfXiqeXrqwV7JIpZ0KDrH X-Proofpoint-GUID: faLiNMsPb0AwfXiqeXrqwV7JIpZ0KDrH X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-11_04,2023-03-10_01,2023-02-09_01 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 Fix variable self assignment in rte_ml_devinit. Issue reported by coverity scan. Coverity issue: 383652 Fixes: ea80eafbd4d8 ("mldev: add PMD functions") Signed-off-by: Srikanth Yalavarthi --- lib/mldev/rte_mldev.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/mldev/rte_mldev.c b/lib/mldev/rte_mldev.c index eeddb8e874..50ebeb1bfe 100644 --- a/lib/mldev/rte_mldev.c +++ b/lib/mldev/rte_mldev.c @@ -186,7 +186,6 @@ rte_ml_dev_init(size_t dev_max) } ml_dev_globals.max_devs = dev_max; - ml_dev_globals.devs = ml_dev_globals.devs; return 0; } -- 2.17.1