summaryrefslogtreecommitdiff
path: root/drivers/net/zynq_gem.c
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2013-01-25 08:24:18 +0100
committerMichal Simek <michal.simek@xilinx.com>2013-04-30 11:39:16 +0200
commit3b90d0afe55d99d35801cfbac2c2a39a65f89ca8 (patch)
treee3ea96eb5b78be0e1353b9f559371f6194a2419f /drivers/net/zynq_gem.c
parent986f00003ce9cfdceca2f49068b8d443316501d3 (diff)
downloadu-boot-imx-3b90d0afe55d99d35801cfbac2c2a39a65f89ca8.zip
u-boot-imx-3b90d0afe55d99d35801cfbac2c2a39a65f89ca8.tar.gz
u-boot-imx-3b90d0afe55d99d35801cfbac2c2a39a65f89ca8.tar.bz2
net: gem: Simplify return path in zynq_gem_recv
Remove one return from the code. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'drivers/net/zynq_gem.c')
-rw-r--r--drivers/net/zynq_gem.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c
index 7188b9e..c0da628 100644
--- a/drivers/net/zynq_gem.c
+++ b/drivers/net/zynq_gem.c
@@ -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)