[Spice-devel] [PATCH 24/24] server/red_channel: style fix in red_channel_init_send_data
Alon Levy
alevy at redhat.com
Wed Jan 19 10:08:10 PST 2011
---
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
More information about the Spice-devel
mailing list