diff options
author | Michal Simek <michal.simek@xilinx.com> | 2013-01-25 08:24:18 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2013-04-30 11:39:16 +0200 |
commit | 3b90d0afe55d99d35801cfbac2c2a39a65f89ca8 (patch) | |
tree | e3ea96eb5b78be0e1353b9f559371f6194a2419f /drivers/net/zynq_gem.c | |
parent | 986f00003ce9cfdceca2f49068b8d443316501d3 (diff) | |
download | u-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.c | 4 |
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) |