Re: [Spice-devel] [spice-server 2/2] worker: Remove display_is_connected()

2018-05-24 Thread Frediano Ziglio
> > It's only called once, and when it's called, we will have dereferenced > worker->display_channel a few lines before, so this cannot be NULL. The > if (worker->display_channel) check can thus be removed, so > display_is_connected() becomes just red_channel_is_connected(). > > Signed-off-by: Ch

[Spice-devel] [spice-server 2/2] worker: Remove display_is_connected()

2018-05-24 Thread Christophe Fergeau
It's only called once, and when it's called, we will have dereferenced worker->display_channel a few lines before, so this cannot be NULL. The if (worker->display_channel) check can thus be removed, so display_is_connected() becomes just red_channel_is_connected(). Signed-off-by: Christophe Fergea