projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f245343
)
drivers: net: cpsw: remove superfluous assignment.
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sun, 18 Mar 2018 10:24:38 +0000
(11:24 +0100)
committer
Joe Hershberger
<joe.hershberger@ni.com>
Thu, 22 Mar 2018 20:05:32 +0000
(15:05 -0500)
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>
drivers/net/cpsw.c
patch
|
blob
|
history
diff --git
a/drivers/net/cpsw.c
b/drivers/net/cpsw.c
index b72258f83bfec9694d42637da38620e35b1c09ed..e2395dbeb9ccc4a9715ed91b8525491a8edbc365 100644
(file)
--- 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)