From: Jonathan Rajotte Date: Tue, 13 Mar 2018 22:19:32 +0000 (-0400) Subject: Cleanup: ust_session_id unused by buffer_reg_uid_consumer_channel_key X-Git-Tag: v2.11.0-rc1~206 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=766048521f3bc7beb1209e2bb939ca2b42532a52;p=lttng-tools.git Cleanup: ust_session_id unused by buffer_reg_uid_consumer_channel_key Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/buffer-registry.c b/src/bin/lttng-sessiond/buffer-registry.c index 06e8f6b6a..5db920781 100644 --- a/src/bin/lttng-sessiond/buffer-registry.c +++ b/src/bin/lttng-sessiond/buffer-registry.c @@ -334,8 +334,7 @@ end: */ int buffer_reg_uid_consumer_channel_key( struct cds_list_head *buffer_reg_uid_list, - uint64_t usess_id, uint64_t chan_key, - uint64_t *consumer_chan_key) + uint64_t chan_key, uint64_t *consumer_chan_key) { struct lttng_ht_iter iter; struct buffer_reg_uid *uid_reg = NULL; diff --git a/src/bin/lttng-sessiond/buffer-registry.h b/src/bin/lttng-sessiond/buffer-registry.h index db1ce0cbb..d0d1575fd 100644 --- a/src/bin/lttng-sessiond/buffer-registry.h +++ b/src/bin/lttng-sessiond/buffer-registry.h @@ -152,7 +152,6 @@ void buffer_reg_destroy_registries(void); int buffer_reg_uid_consumer_channel_key( struct cds_list_head *buffer_reg_uid_list, - uint64_t usess_id, uint64_t chan_key, - uint64_t *consumer_chan_key); + uint64_t chan_key, uint64_t *consumer_chan_key); #endif /* LTTNG_BUFFER_REGISTRY_H */ diff --git a/src/bin/lttng-sessiond/ust-app.c b/src/bin/lttng-sessiond/ust-app.c index 7da6f1aae..97083e15a 100644 --- a/src/bin/lttng-sessiond/ust-app.c +++ b/src/bin/lttng-sessiond/ust-app.c @@ -6149,8 +6149,7 @@ int ust_app_uid_get_channel_runtime_stats(uint64_t ust_session_id, *lost = 0; ret = buffer_reg_uid_consumer_channel_key( - buffer_reg_uid_list, ust_session_id, - uchan_id, &consumer_chan_key); + buffer_reg_uid_list, uchan_id, &consumer_chan_key); if (ret < 0) { /* Not found */ ret = 0;