[U-Boot] [PATCH 1/1] drivers: net: cpsw: remove superfluous assignment.

In
int ret = A; ret = B;
the first assignment has not effect.
Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de --- drivers/net/cpsw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/cpsw.c b/drivers/net/cpsw.c index b72258f83b..e2395dbeb9 100644 --- a/drivers/net/cpsw.c +++ b/drivers/net/cpsw.c @@ -949,7 +949,7 @@ static int _cpsw_recv(struct cpsw_priv *priv, uchar **pkt) { void *buffer; int len; - int ret = -EAGAIN; + int ret;
ret = cpdma_process(priv, &priv->rx_chan, &buffer, &len); if (ret < 0)

On Sun, Mar 18, 2018 at 5:24 AM, Heinrich Schuchardt xypron.glpk@gmx.de wrote:
In
int ret = A; ret = B;
the first assignment has not effect.
Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de
Acked-by: Joe Hershberger joe.hershberger@ni.com

Hi Heinrich,
https://patchwork.ozlabs.org/patch/887356/ was applied to http://git.denx.de/?p=u-boot/u-boot-net.git
Thanks! -Joe
participants (2)
-
Heinrich Schuchardt
-
Joe Hershberger