diff options
author | Michal Simek <michal.simek@xilinx.com> | 2013-01-25 07:24:18 (GMT) |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2013-04-30 09:39:16 (GMT) |
commit | 3b90d0afe55d99d35801cfbac2c2a39a65f89ca8 (patch) | |
tree | e3ea96eb5b78be0e1353b9f559371f6194a2419f /drivers/net | |
parent | 986f00003ce9cfdceca2f49068b8d443316501d3 (diff) | |
download | u-boot-3b90d0afe55d99d35801cfbac2c2a39a65f89ca8.tar.xz |
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')
-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) |