spicevmc: Reuse "sin" variable

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Snir Sheriber <ssheribe@redhat.com>
This commit is contained in:
Frediano Ziglio 2019-06-01 13:14:11 +01:00 committed by Snir Sheriber
parent a9af580a6e
commit a84d9c653e

View File

@ -786,7 +786,7 @@ static void spicevmc_connect(RedChannel *channel, RedClient *client,
return;
}
sif = spice_char_device_get_interface(vmc_channel->chardev_sin);
sif = spice_char_device_get_interface(sin);
if (sif->state) {
sif->state(sin, 1);
}