drivers: net: cpsw: remove superfluous assignment.
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 18 Mar 2018 10:24:38 +0000 (11:24 +0100)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 22 Mar 2018 20:05:32 +0000 (15:05 -0500)
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>
drivers/net/cpsw.c

index b72258f83bfec9694d42637da38620e35b1c09ed..e2395dbeb9ccc4a9715ed91b8525491a8edbc365 100644 (file)
@@ -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)