DPDK patches and discussions
 help / color / mirror / Atom feed
From: Srikanth Yalavarthi <syalavarthi@marvell.com>
To: Srikanth Yalavarthi <syalavarthi@marvell.com>,
	Jerin Jacob <jerinj@marvell.com>
Cc: <dev@dpdk.org>, <sshankarnara@marvell.com>
Subject: [PATCH] mldev: remove variable self assignment in dev init
Date: Sat, 11 Mar 2023 06:57:04 -0800	[thread overview]
Message-ID: <20230311145705.9178-1-syalavarthi@marvell.com> (raw)

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 <syalavarthi@marvell.com>
---
 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


             reply	other threads:[~2023-03-11 14:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-11 14:57 Srikanth Yalavarthi [this message]
2023-03-13 11:02 ` David Marchand
2023-03-13 19:19 ` Tyler Retzlaff
2023-03-15  9:49   ` David Marchand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230311145705.9178-1-syalavarthi@marvell.com \
    --to=syalavarthi@marvell.com \
    --cc=dev@dpdk.org \
    --cc=jerinj@marvell.com \
    --cc=sshankarnara@marvell.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).