poller_call() is called by is_timeout(), no need to do this again in a
timeout loop.

Signed-off-by: Sascha Hauer <s.ha...@pengutronix.de>
---
 common/ratp/ratp.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/common/ratp/ratp.c b/common/ratp/ratp.c
index def1ceb020..92ecb6b5d3 100644
--- a/common/ratp/ratp.c
+++ b/common/ratp/ratp.c
@@ -416,7 +416,6 @@ int barebox_ratp_fs_call(struct ratp_bb_pkt *tx, struct 
ratp_bb_pkt **rx)
        start = get_time_ns();
 
        while (!ctx->fs_rx) {
-               poller_call();
                if (ratp_closed(&ctx->ratp))
                        return -EIO;
                if (is_timeout(start, 10 * SECOND))
-- 
2.26.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to