mldev: remove variable self assignment in dev init
Checks
Commit Message
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(-)
Comments
On Sat, Mar 11, 2023 at 3:57 PM Srikanth Yalavarthi
<syalavarthi@marvell.com> wrote:
>
> 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>
Reviewed-by: David Marchand <david.marchand@redhat.com>
On Sat, Mar 11, 2023 at 06:57:04AM -0800, Srikanth Yalavarthi wrote:
> 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>
> ---
Reviewed-by: Tyler Retzlaff <roretzla@linux.microsoft.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
On Mon, Mar 13, 2023 at 8:19 PM Tyler Retzlaff
<roretzla@linux.microsoft.com> wrote:
>
> On Sat, Mar 11, 2023 at 06:57:04AM -0800, Srikanth Yalavarthi wrote:
> > 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>
> > ---
>
> Reviewed-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
Applied, thanks.
@@ -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;
}