mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ratp: Remove unnecessary poller_call()
@ 2020-05-20  8:52 Sascha Hauer
  0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2020-05-20  8:52 UTC (permalink / raw)
  To: Barebox List

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

Signed-off-by: Sascha Hauer <s.hauer@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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-05-20  8:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-20  8:52 [PATCH] ratp: Remove unnecessary poller_call() Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox