diff --git a/server/spicevmc.c b/server/spicevmc.c index 83f4a760..34d5c6e4 100644 --- a/server/spicevmc.c +++ b/server/spicevmc.c @@ -482,10 +482,6 @@ static void spicevmc_red_channel_client_on_disconnect(RedChannelClient *rcc) SpiceCharDeviceInterface *sif; RedClient *client = red_channel_client_get_client(rcc); - if (!rcc) { - return; - } - channel = RED_VMC_CHANNEL(red_channel_client_get_channel(rcc)); /* partial message which wasn't pushed to device */