Code cleanup in contexts
[lttng-ust.git] / liblttng-ust / lttng-context-perf-counters.c
index a15417ccde010435103ad5e0ef8621902fc6121b..4816f89b5a4a536e4cc2741e6e5d658379692baf 100644 (file)
@@ -367,10 +367,7 @@ static
 void perf_counter_get_value(struct lttng_ctx_field *field,
                struct lttng_ctx_value *value)
 {
-       uint64_t v;
-
-       v = wrapper_perf_counter_read(field);
-       value->u.s64 = v;
+       value->u.s64 = wrapper_perf_counter_read(field);
 }
 
 /* Called with UST lock held */
This page took 0.02296 seconds and 4 git commands to generate.