mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-30 17:49:02 +00:00
spicevmc: Remove useless check
rcc is already deferenced in red_channel_client_get_client so checking for NULL after that is uselss. Also this call is generated from red_channel_client_disconnect which requires the rcc pointer to be valid. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
3d84e1559f
commit
1b9cf935b7
@ -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 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user