mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 08:57:58 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -949,7 +949,7 @@ static int _cpsw_recv(struct cpsw_priv *priv, uchar **pkt)
|
||||||
{
|
{
|
||||||
void *buffer;
|
void *buffer;
|
||||||
int len;
|
int len;
|
||||||
int ret = -EAGAIN;
|
int ret;
|
||||||
|
|
||||||
ret = cpdma_process(priv, &priv->rx_chan, &buffer, &len);
|
ret = cpdma_process(priv, &priv->rx_chan, &buffer, &len);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
|
Loading…
Reference in a new issue