X-Git-Url: http://git.liburcu.org/?p=lttng-ust.git;a=blobdiff_plain;f=liblttng-ust%2Flttng-context-procname.c;h=c6d02cf60d3b0692dd449e5f12f08a32b08307bf;hp=8c1520ad51f221b467dd38815cd66868a75b137d;hb=6e9ac4ae894690c95df4566289422c4c05ab472a;hpb=bc6aca41dbe090e52277734119baf142fc70d79e diff --git a/liblttng-ust/lttng-context-procname.c b/liblttng-ust/lttng-context-procname.c index 8c1520ad..c6d02cf6 100644 --- a/liblttng-ust/lttng-context-procname.c +++ b/liblttng-ust/lttng-context-procname.c @@ -78,10 +78,7 @@ void lttng_context_procname_reset(void) static size_t procname_get_size(struct lttng_ctx_field *field, size_t offset) { - size_t size = 0; - - size += LTTNG_UST_PROCNAME_LEN; - return size; + return LTTNG_UST_PROCNAME_LEN; } static @@ -99,10 +96,7 @@ static void procname_get_value(struct lttng_ctx_field *field, struct lttng_ctx_value *value) { - char *procname; - - procname = wrapper_getprocname(); - value->u.str = procname; + value->u.str = wrapper_getprocname(); } int lttng_add_procname_to_ctx(struct lttng_ctx **ctx)