From: Michal Simek Date: Fri, 25 Jan 2013 07:24:18 +0000 (+0100) Subject: net: gem: Simplify return path in zynq_gem_recv X-Git-Tag: v2013.07-rc1~104 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3b90d0afe55d99d35801cfbac2c2a39a65f89ca8;p=u-boot net: gem: Simplify return path in zynq_gem_recv Remove one return from the code. Signed-off-by: Michal Simek Reviewed-by: Tom Rini --- diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 7188b9ee0e..c0da628378 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)