From: Quanyang Wang <quanyang.w...@windriver.com> Fix compile errors which introduced by commit bbd91cdb620e ("net: axienet: fix RX ring refill allocation failure handling"). It's because there is a redundant bracket.
Signed-off-by: Quanyang Wang <quanyang.w...@windriver.com> --- drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c index 9cd370ef0754..14b702a87641 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c +++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c @@ -1619,9 +1619,8 @@ static int axienet_recv(struct net_device *ndev, int budget, netif_receive_skb(skb); #endif - size += length; - packets++; - } + size += length; + packets++; /* Ensure that the skb is completely updated * prio to mapping the DMA -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11176): https://lists.yoctoproject.org/g/linux-yocto/message/11176 Mute This Topic: https://lists.yoctoproject.org/mt/90412903/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-