From: Jonathan Rajotte Date: Tue, 13 Mar 2018 18:27:24 +0000 (-0400) Subject: Cleanup: channel is never used by metadata_cache_check_version() X-Git-Tag: v2.11.0-rc1~214 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9dd04ae3e2e5ef924839f7209b9c7d693787627e;p=lttng-tools.git Cleanup: channel is never used by metadata_cache_check_version() Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/consumer/consumer-metadata-cache.c b/src/common/consumer/consumer-metadata-cache.c index ac83443a9..5e9dca3ea 100644 --- a/src/common/consumer/consumer-metadata-cache.c +++ b/src/common/consumer/consumer-metadata-cache.c @@ -89,7 +89,7 @@ void metadata_cache_reset(struct consumer_metadata_cache *cache) */ static int metadata_cache_check_version(struct consumer_metadata_cache *cache, - struct lttng_consumer_channel *channel, uint64_t version) + uint64_t version) { int ret = 0; @@ -150,7 +150,7 @@ int consumer_metadata_cache_write(struct lttng_consumer_channel *channel, cache = channel->metadata_cache; - ret = metadata_cache_check_version(cache, channel, version); + ret = metadata_cache_check_version(cache, version); if (ret < 0) { goto end; }