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:
Heinrich Schuchardt 2018-03-18 11:24:38 +01:00 committed by Joe Hershberger
parent f24534307e
commit 4b23d3c864

View file

@ -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)