X-Git-Url: http://git.liburcu.org/?p=lttng-ust.git;a=blobdiff_plain;f=liblttng-ust%2Flttng-context-pthread-id.c;h=5f9faf8508923858343fc9c588df7b32ab87644f;hp=552100decb4481c564ac912d98d0fead0292de2f;hb=6e9ac4ae894690c95df4566289422c4c05ab472a;hpb=bc6aca41dbe090e52277734119baf142fc70d79e diff --git a/liblttng-ust/lttng-context-pthread-id.c b/liblttng-ust/lttng-context-pthread-id.c index 552100de..5f9faf85 100644 --- a/liblttng-ust/lttng-context-pthread-id.c +++ b/liblttng-ust/lttng-context-pthread-id.c @@ -52,10 +52,7 @@ static void pthread_id_get_value(struct lttng_ctx_field *field, struct lttng_ctx_value *value) { - unsigned long pthread_id; - - pthread_id = (unsigned long) pthread_self(); - value->u.s64 = pthread_id; + value->u.s64 = (unsigned long) pthread_self(); } int lttng_add_pthread_id_to_ctx(struct lttng_ctx **ctx)