]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: gem: Simplify return path in zynq_gem_recv
authorMichal Simek <michal.simek@xilinx.com>
Fri, 25 Jan 2013 07:24:18 +0000 (08:24 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 30 Apr 2013 09:39:16 +0000 (11:39 +0200)
Remove one return from the code.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Tom Rini <trini@ti.com>
drivers/net/zynq_gem.c

index 7188b9ee0e69a05e867e7da3411e47705d467e49..c0da62837820c9dae6e8e62f4fcbf2d5059fd6a5 100644 (file)
@@ -363,11 +363,9 @@ static int zynq_gem_recv(struct eth_device *dev)
 
                if ((++priv->rxbd_current) >= RX_BUF)
                        priv->rxbd_current = 0;
-
-               return frame_len;
        }
 
-       return 0;
+       return frame_len;
 }
 
 static void zynq_gem_halt(struct eth_device *dev)