X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=lttng-context-vppid.c;h=d55e12db6b2541afd1d7da7274fdb6385f326088;hb=96ba7208aa8009345a525148e32f78cd8d4693ab;hp=813ccc61115d31a26463ead8ce647d949e2e9d6b;hpb=b64bc438d1c9bbcf241c598ca9f0e00d5770d784;p=lttng-modules.git diff --git a/lttng-context-vppid.c b/lttng-context-vppid.c index 813ccc61..d55e12db 100644 --- a/lttng-context-vppid.c +++ b/lttng-context-vppid.c @@ -43,11 +43,10 @@ void vppid_record(struct lttng_ctx_field *field, int lttng_add_vppid_to_ctx(struct lttng_ctx **ctx) { struct lttng_ctx_field *field; - int ret; field = lttng_append_context(ctx); if (!field) - return ret; + return -ENOMEM; field->event_field.name = "vppid"; field->event_field.type.atype = atype_integer; field->event_field.type.u.basic.integer.size = sizeof(pid_t) * CHAR_BIT;