From: Michal Simek Date: Wed, 9 Dec 2015 13:16:32 +0000 (+0100) Subject: net: gem: Fix return value from recv X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=da872d7c136cdbc111f4937becfd0bb36e425df6;p=u-boot.git net: gem: Fix return value from recv recv function should return 0 instead of frame_len not to proceed the same packet again in core. Signed-off-by: Michal Simek Acked-by: Joe Hershberger --- diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index b0755f5e3b..5f0f2005ce 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -569,7 +569,7 @@ static int zynq_gem_recv(struct udevice *dev, int flags, uchar **packetp) priv->rxbd_current = 0; } - return frame_len; + return 0; } static void zynq_gem_halt(struct udevice *dev)