From 6d6e874ed47c810ff36683713d22198c20f2dfbb Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Mon, 31 Mar 2025 15:30:07 +0300 Subject: [PATCH] video: remove unnecessary return No functional change. Signed-off-by: Manos Pitsidianakis --- staging/vhost-device-video/src/stream.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staging/vhost-device-video/src/stream.rs b/staging/vhost-device-video/src/stream.rs index ab8265c..4fdd59c 100644 --- a/staging/vhost-device-video/src/stream.rs +++ b/staging/vhost-device-video/src/stream.rs @@ -105,7 +105,7 @@ impl Future for Resource { fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { 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