projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
986f000
)
net: gem: Simplify return path in zynq_gem_recv
author
Michal Simek
<michal.simek@xilinx.com>
Fri, 25 Jan 2013 07:24:18 +0000
(08:24 +0100)
committer
Michal Simek
<michal.simek@xilinx.com>
Tue, 30 Apr 2013 09:39:16 +0000
(11:39 +0200)
Remove one return from the code.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Tom Rini <trini@ti.com>
drivers/net/zynq_gem.c
patch
|
blob
|
history
diff --git
a/drivers/net/zynq_gem.c
b/drivers/net/zynq_gem.c
index 7188b9ee0e69a05e867e7da3411e47705d467e49..c0da62837820c9dae6e8e62f4fcbf2d5059fd6a5 100644
(file)
--- 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)