[PATCH] ratp: Remove unnecessary poller_call()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux