From e13c4c862ab8ad7b959dbf4810d3f5bb96358f95 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Mon, 18 Nov 2013 17:24:08 +0100 Subject: channel: remove useless desc != NULL check spice_channel_type_to_string() does not return NULL --- gtk/spice-channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/spice-channel.c b/gtk/spice-channel.c index ccf15d3..b82c305 100644 --- a/gtk/spice-channel.c +++ b/gtk/spice-channel.c @@ -123,7 +123,7 @@ static void spice_channel_constructed(GObject *gobject) const char *desc = spice_channel_type_to_string(c->channel_type); snprintf(c->name, sizeof(c->name), "%s-%d:%d", - desc ? desc : "unknown", c->channel_type, c->channel_id); + desc, c->channel_type, c->channel_id); CHANNEL_DEBUG(channel, "%s", __FUNCTION__); const char *disabled = g_getenv("SPICE_DISABLE_CHANNELS"); -- cgit v1.2.3