X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.c;h=0518f44ca902e8b55054d93a28a17314b89a740f;hp=57322ae08dbb41685f17bcadb3b59ccc378c2431;hb=95a1109b9ea25871941d9fff87cd8c2b2cba61d3;hpb=1950109e7a08d8064ef5b1f446524274b4fa72d5 diff --git a/src/common/consumer.c b/src/common/consumer.c index 57322ae08..0518f44ca 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -805,20 +805,6 @@ struct lttng_consumer_channel *consumer_allocate_channel(uint64_t key, channel->refcount = 1; } - switch (output) { - case LTTNG_EVENT_SPLICE: - channel->output = CONSUMER_CHANNEL_SPLICE; - break; - case LTTNG_EVENT_MMAP: - channel->output = CONSUMER_CHANNEL_MMAP; - break; - default: - ERR("Allocate channel output unknown %d", output); - free(channel); - channel = NULL; - goto end; - } - strncpy(channel->pathname, pathname, sizeof(channel->pathname)); channel->pathname[sizeof(channel->pathname) - 1] = '\0';