On 03/18/2016 03:45 AM, Prabhakar Kushwaha wrote:
> if buffer < 7, return number of buffer seeded to QBMAN.
> 
> Signed-off-by: Prabhakar Kushwaha <prabhakar.kushw...@nxp.com>
> Reported-by: Jose Rivera <german.riv...@nxp.com>
> ---
>  drivers/net/ldpaa_eth/ldpaa_eth.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.c 
> b/drivers/net/ldpaa_eth/ldpaa_eth.c
> index 8a00bc3..274bcea 100644
> --- a/drivers/net/ldpaa_eth/ldpaa_eth.c
> +++ b/drivers/net/ldpaa_eth/ldpaa_eth.c
> @@ -665,7 +665,7 @@ err_alloc:
>       if (i)
>               goto release_bufs;
>  
> -     return 0;
> +     return i;
>  }
>  

Prabhakar,

I don't understand what you are trying to do. If i != 0, it goes to
"release_bufs" and return from there. So the "return i" here only returns 0.

York
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to