mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-02 05:50:40 +00:00
worker: remove useless check
display_channel is never NULL. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma at redhat.com>
This commit is contained in:
parent
17684522e1
commit
a61ab509b2
@ -321,8 +321,7 @@ static int red_process_display(RedWorker *worker, int *ring_is_empty)
|
||||
spice_error("bad command type");
|
||||
}
|
||||
n++;
|
||||
if ((worker->display_channel &&
|
||||
red_channel_all_blocked(&worker->display_channel->common.base))
|
||||
if (red_channel_all_blocked(&worker->display_channel->common.base)
|
||||
|| spice_get_monotonic_time_ns() - start > NSEC_PER_SEC / 100) {
|
||||
worker->event_timeout = 0;
|
||||
return n;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user