From 4b23d3c86465f366ef6d76866f6464f19dd15135 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Sun, 18 Mar 2018 11:24:38 +0100 Subject: [PATCH] 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 --- drivers/net/cpsw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/cpsw.c b/drivers/net/cpsw.c index b72258f83bf..e2395dbeb9c 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)