Skip to content
Snippets Groups Projects
Commit 3b90d0af authored by Michal Simek's avatar Michal Simek
Browse files

net: gem: Simplify return path in zynq_gem_recv


Remove one return from the code.

Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Reviewed-by: default avatarTom Rini <trini@ti.com>
parent 986f0000
No related branches found
No related tags found
No related merge requests found
...@@ -363,11 +363,9 @@ static int zynq_gem_recv(struct eth_device *dev) ...@@ -363,11 +363,9 @@ static int zynq_gem_recv(struct eth_device *dev)
if ((++priv->rxbd_current) >= RX_BUF) if ((++priv->rxbd_current) >= RX_BUF)
priv->rxbd_current = 0; priv->rxbd_current = 0;
return frame_len;
} }
return 0; return frame_len;
} }
static void zynq_gem_halt(struct eth_device *dev) static void zynq_gem_halt(struct eth_device *dev)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment