* [U-Boot] [PATCH] driver: net: ldpaa_eth: return number of buffer seeded
@ 2016-03-18 10:45 Prabhakar Kushwaha
2016-03-24 17:37 ` york sun
0 siblings, 1 reply; 3+ messages in thread
From: Prabhakar Kushwaha @ 2016-03-18 10:45 UTC (permalink / raw)
To: u-boot
if buffer < 7, return number of buffer seeded to QBMAN.
Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Reported-by: Jose Rivera <german.rivera@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;
}
static int ldpaa_dpbp_seed(uint16_t bpid)
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] driver: net: ldpaa_eth: return number of buffer seeded
2016-03-18 10:45 [U-Boot] [PATCH] driver: net: ldpaa_eth: return number of buffer seeded Prabhakar Kushwaha
@ 2016-03-24 17:37 ` york sun
2016-03-25 5:29 ` Prabhakar Kushwaha
0 siblings, 1 reply; 3+ messages in thread
From: york sun @ 2016-03-24 17:37 UTC (permalink / raw)
To: u-boot
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.kushwaha@nxp.com>
> Reported-by: Jose Rivera <german.rivera@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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] driver: net: ldpaa_eth: return number of buffer seeded
2016-03-24 17:37 ` york sun
@ 2016-03-25 5:29 ` Prabhakar Kushwaha
0 siblings, 0 replies; 3+ messages in thread
From: Prabhakar Kushwaha @ 2016-03-25 5:29 UTC (permalink / raw)
To: u-boot
> -----Original Message-----
> From: york sun
> Sent: Thursday, March 24, 2016 11:08 PM
> To: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>; u-
> boot at lists.denx.de
> Cc: joe.hershberger at gmail.com
> Subject: Re: [PATCH] driver: net: ldpaa_eth: return number of buffer seeded
>
> 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.kushwaha@nxp.com>
> > Reported-by: Jose Rivera <german.rivera@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.
>
Thanks York for pointing out.
"return i", is not even required. "return 0" is correct.
This patch should be rejected. I will update the patchwork
--prabhakar
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-03-25 5:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-18 10:45 [U-Boot] [PATCH] driver: net: ldpaa_eth: return number of buffer seeded Prabhakar Kushwaha
2016-03-24 17:37 ` york sun
2016-03-25 5:29 ` Prabhakar Kushwaha
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.