From: Heinrich Schuchardt Date: Sun, 18 Mar 2018 10:24:38 +0000 (+0100) Subject: drivers: net: cpsw: remove superfluous assignment. X-Git-Tag: v2018.05-rc1~11^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4b23d3c86465f366ef6d76866f6464f19dd15135;p=u-boot drivers: net: cpsw: remove superfluous assignment. In int ret = A; ret = B; the first assignment has not effect. Signed-off-by: Heinrich Schuchardt Acked-by: Joe Hershberger --- 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)