mirror of
https://github.com/rust-vmm/vhost-device.git
synced 2025-12-29 08:46:54 +00:00
video: remove unnecessary return
No functional change. Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
This commit is contained in:
parent
2012d2198b
commit
6d6e874ed4
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user