[dpdk-dev] [dpdk-stable] [PATCH v2 7/7] net/bnxt: fix redundant return

David Marchand david.marchand at redhat.com
Wed Nov 18 15:42:58 CET 2020


On Wed, Nov 18, 2020 at 12:48 PM Ferruh Yigit <ferruh.yigit at intel.com> wrote:
>
> Removing useless 'return' statement.
>
> Fixes: b2da02480cb7 ("net/bnxt: support EEM system memory")
> Cc: stable at dpdk.org
>
> Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>
> ---
> Cc: peter.spreadborough at broadcom.com
> ---
>  drivers/net/bnxt/tf_core/tf_em_common.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/net/bnxt/tf_core/tf_em_common.c b/drivers/net/bnxt/tf_core/tf_em_common.c
> index ad92cbdc75..c96c21c2e9 100644
> --- a/drivers/net/bnxt/tf_core/tf_em_common.c
> +++ b/drivers/net/bnxt/tf_core/tf_em_common.c
> @@ -307,7 +307,6 @@ tf_em_page_tbl_pgcnt(uint32_t num_pages,
>  {
>         return roundup(num_pages, MAX_PAGE_PTRS(page_size)) /
>                        MAX_PAGE_PTRS(page_size);
> -       return 0;
>  }
>
>  /**

Reviewed-by: David Marchand <david.marchand at redhat.com>

-- 
David Marchand



More information about the dev mailing list