From c10ac68c2e86536936faeb7f45af15288c39dffe Mon Sep 17 00:00:00 2001 From: Ingmar Jager Date: Wed, 25 Sep 2024 17:22:51 +0200 Subject: [PATCH] Cleanup unused variables --- embassy-stm32/src/usb/usb_host.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/embassy-stm32/src/usb/usb_host.rs b/embassy-stm32/src/usb/usb_host.rs index 0740457a7..616edbe18 100644 --- a/embassy-stm32/src/usb/usb_host.rs +++ b/embassy-stm32/src/usb/usb_host.rs @@ -538,8 +538,6 @@ impl<'d, T: Instance> ChannelOut for Channel<'d, T, Out> { let options: TransferOptions = options.into().unwrap_or_default(); - let regs = T::regs(); - let regs = T::regs(); let epr = regs.epr(index); @@ -572,7 +570,6 @@ impl<'d, T: Instance> ChannelOut for Channel<'d, T, Out> { } } - let regs = T::regs(); let stat = epr.read().stat_tx(); match stat { Stat::DISABLED => Poll::Ready(Ok(())),