summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2013-11-18 17:24:08 +0100
committerMarc-André Lureau <marcandre.lureau@redhat.com>2013-11-20 16:32:07 +0100
commite13c4c862ab8ad7b959dbf4810d3f5bb96358f95 (patch)
tree2d6ef7a71d226e40201d9853731181348206111c
parent67b4ab8820ef7145026e450d7c594e37fa78b3cf (diff)
channel: remove useless desc != NULL check
spice_channel_type_to_string() does not return NULL
-rw-r--r--gtk/spice-channel.c2
1 files changed, 1 insertions, 1 deletions
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");