projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Code cleanup in contexts
[lttng-ust.git]
/
liblttng-ust
/
lttng-context-procname.c
diff --git
a/liblttng-ust/lttng-context-procname.c
b/liblttng-ust/lttng-context-procname.c
index 8c1520ad51f221b467dd38815cd66868a75b137d..c6d02cf60d3b0692dd449e5f12f08a32b08307bf 100644
(file)
--- 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)
{
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
}
static
@@
-99,10
+96,7
@@
static
void procname_get_value(struct lttng_ctx_field *field,
struct lttng_ctx_value *value)
{
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)
}
int lttng_add_procname_to_ctx(struct lttng_ctx **ctx)
This page took
0.02406 seconds
and
4
git commands to generate.