[Spice-devel] [PATCH 24/24] server/red_channel: style fix in red_channel_init_send_data

Marc-André Lureau marcandre.lureau at gmail.com
Wed Feb 2 10:53:51 PST 2011


ack

On Wed, Jan 19, 2011 at 7:08 PM, Alon Levy <alevy at redhat.com> wrote:
> ---
>  server/red_channel.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/server/red_channel.c b/server/red_channel.c
> index b621be9..f8d5a0e 100644
> --- a/server/red_channel.c
> +++ b/server/red_channel.c
> @@ -458,10 +458,10 @@ void red_channel_reset_send_data(RedChannel *channel)
>
>  void red_channel_init_send_data(RedChannel *channel, uint16_t msg_type, PipeItem *item)
>  {
> +    ASSERT(channel->send_data.item == NULL);
>     channel->send_data.header->type = msg_type;
> +    channel->send_data.item = item;
>     if (item) {
> -        ASSERT(channel->send_data.item == NULL);
> -        channel->send_data.item = item;
>         channel->hold_item(item);
>     }
>  }
> --
> 1.7.3.4
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>



-- 
Marc-André Lureau


More information about the Spice-devel mailing list