mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-29 08:47:13 +00:00
Remove dead code in reds_fill_channels()
channels_info->num_of_channels is assigned, its value is not used, and then it's assigned a different value. The first assignment can be removed. Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
8e5bacd8b1
commit
8551280d43
@ -1004,7 +1004,6 @@ static void reds_fill_channels(RedsState *reds, SpiceMsgChannels *channels_info)
|
||||
RingItem *now;
|
||||
int used_channels = 0;
|
||||
|
||||
channels_info->num_of_channels = reds->num_of_channels;
|
||||
RING_FOREACH(now, &reds->channels) {
|
||||
RedChannel *channel = SPICE_CONTAINEROF(now, RedChannel, link);
|
||||
if (reds->num_clients > 1 &&
|
||||
|
||||
Loading…
Reference in New Issue
Block a user