From d46b2b49c7941afed6578556dd2d6d98d072cbbb Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Fri, 9 Jun 2023 03:34:12 +0200 Subject: [PATCH] cyw43: remove pointless wait_complete. --- cyw43/src/control.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cyw43/src/control.rs b/cyw43/src/control.rs index 6919d569..c67614dd 100644 --- a/cyw43/src/control.rs +++ b/cyw43/src/control.rs @@ -381,10 +381,7 @@ impl<'a> Control<'a> { } let ioctl = CancelOnDrop(self.ioctl_state); - - ioctl.0.do_ioctl(kind, cmd, iface, buf).await; - let resp_len = ioctl.0.wait_complete().await; - + let resp_len = ioctl.0.do_ioctl(kind, cmd, iface, buf).await; ioctl.defuse(); resp_len