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>
This commit is contained in:
Michal Simek 2013-01-25 08:24:18 +01:00
parent 986f00003c
commit 3b90d0afe5

View file

@ -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)