diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-05-19 09:07:35 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-05-20 10:52:27 +0200 |
commit | 6767726557cb32bccea6fa2fc125c0e8a957fe5f (patch) | |
tree | a685798effd0f5b73eed72124fae592c78046742 /common/ratp | |
parent | c51dfe31e7725628ba52060024a7eb7083620557 (diff) | |
download | barebox-6767726557cb32bccea6fa2fc125c0e8a957fe5f.tar.gz barebox-6767726557cb32bccea6fa2fc125c0e8a957fe5f.tar.xz |
ratp: Remove unnecessary poller_call()
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>
Diffstat (limited to 'common/ratp')
-rw-r--r-- | common/ratp/ratp.c | 1 |
1 files changed, 0 insertions, 1 deletions
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)) |