From 570ffab6703083f4e7f08a982afbf1c6de93b801 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Thu, 19 Jan 2023 13:30:51 +0100 Subject: [PATCH] net: poll returning false is not an error. No need to repoll. --- embassy-net/src/lib.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/embassy-net/src/lib.rs b/embassy-net/src/lib.rs index c419ec1f9..b8e766b8b 100644 --- a/embassy-net/src/lib.rs +++ b/embassy-net/src/lib.rs @@ -288,11 +288,7 @@ impl Inner { cx: Some(cx), inner: &mut self.device, }; - if !s.iface.poll(timestamp, &mut smoldev, &mut s.sockets) { - // If poll() returns error, it may not be done yet, so poll again later. - cx.waker().wake_by_ref(); - return; - } + s.iface.poll(timestamp, &mut smoldev, &mut s.sockets); // Update link up let old_link_up = self.link_up;