video: remove unnecessary return

No functional change.

Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
This commit is contained in:
Manos Pitsidianakis 2025-03-31 15:30:07 +03:00 committed by Stefano Garzarella
parent 2012d2198b
commit 6d6e874ed4

View File

@ -105,7 +105,7 @@ impl Future for Resource {
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
if self.is_ready() {
return Poll::Ready(self.buffer_data.read().unwrap().clone());
Poll::Ready(self.buffer_data.read().unwrap().clone())
} else {
self.state.write().unwrap().waker = Some(cx.waker().clone());
Poll::Pending