[PATCH] common/cnxk: removed stale condition

Jerin Jacob jerinjacobk at gmail.com
Thu Jun 15 10:43:58 CEST 2023


On Thu, Jun 15, 2023 at 12:01 PM <skoteshwar at marvell.com> wrote:
>
> From: Satha Rao <skoteshwar at marvell.com>
>
> Removed condition that doesn't have any effect on code flow.
>
> Coverity issue: 385405
> Fixes: 4d00b8c6a331 ("common/cnxk: allocate dynamic BPIDs")
>
> Signed-off-by: Satha Rao <skoteshwar at marvell.com>

Applied to dpdk-next-net-mrvl/for-next-net. Thanks


> ---
>  drivers/common/cnxk/roc_nix_fc.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/drivers/common/cnxk/roc_nix_fc.c b/drivers/common/cnxk/roc_nix_fc.c
> index f79baf9..d8ca5f9 100644
> --- a/drivers/common/cnxk/roc_nix_fc.c
> +++ b/drivers/common/cnxk/roc_nix_fc.c
> @@ -750,8 +750,6 @@ enum roc_nix_fc_mode
>         req->read = 0;
>
>         rc = mbox_process(mbox);
> -       if (rc)
> -               goto exit;
>  exit:
>         mbox_put(mbox);
>         return rc;
> --
> 1.8.3.1
>


More information about the dev mailing list