diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2015-03-05 16:20:11 +0100 |
---|---|---|
committer | Jonathon Jongsma <jjongsma@redhat.com> | 2016-04-27 10:27:31 -0500 |
commit | 8551280d436a6e2ee2bc3dd3674e609b855b7407 (patch) | |
tree | 981514babb824c268cce7eb5f58fd5c562123bae | |
parent | 8e5bacd8b1d201b4e652fd6874819737cbd3cf0e (diff) |
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>
-rw-r--r-- | server/reds.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/server/reds.c b/server/reds.c index d83b8de2..19baf2ba 100644 --- a/server/reds.c +++ b/server/reds.c @@ -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 && |