From: Chaitanya Sakinam Date: Thu, 10 Sep 2020 11:20:53 +0000 (+0530) Subject: ls1012a, pfe_eth: correction in delay implementation X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=0649ab496a0b40ef96c91c1619b92a4e2360c983;p=u-boot.git ls1012a, pfe_eth: correction in delay implementation correction in delay implementation before we exit out of tx timeout. Signed-off-by: Chaitanya Sakinam Reviewed-by: Priyanka Jain --- diff --git a/drivers/net/pfe_eth/pfe_eth.c b/drivers/net/pfe_eth/pfe_eth.c index e49bf4a6f3..b74974c99a 100644 --- a/drivers/net/pfe_eth/pfe_eth.c +++ b/drivers/net/pfe_eth/pfe_eth.c @@ -176,9 +176,10 @@ static int pfe_eth_send(struct udevice *dev, void *packet, int length) udelay(100); i++; - if (i == 30000) + if (i == 30000) { printf("Tx timeout, send failed\n"); - break; + break; + } } return 0;