From 3b90d0afe55d99d35801cfbac2c2a39a65f89ca8 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Fri, 25 Jan 2013 08:24:18 +0100 Subject: [PATCH] net: gem: Simplify return path in zynq_gem_recv Remove one return from the code. Signed-off-by: Michal Simek Reviewed-by: Tom Rini --- drivers/net/zynq_gem.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) -- 2.39.5