mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-27 06:04:40 +08:00
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> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
f24534307e
commit
4b23d3c864
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user