mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 22:52:18 +00:00
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:
parent
986f00003c
commit
3b90d0afe5
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue