common/cnxk: removed stale condition
Checks
Commit Message
From: Satha Rao <skoteshwar@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@marvell.com>
---
drivers/common/cnxk/roc_nix_fc.c | 2 --
1 file changed, 2 deletions(-)
Comments
On Thu, Jun 15, 2023 at 12:01 PM <skoteshwar@marvell.com> wrote:
>
> From: Satha Rao <skoteshwar@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@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
>
@@ -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;