X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-context-vppid.c;h=d55e12db6b2541afd1d7da7274fdb6385f326088;hb=09fec6b43d11b3e0ece36f9e9e44b9627c1b565d;hp=813ccc61115d31a26463ead8ce647d949e2e9d6b;hpb=ef200626172d529e42df4331f2abe92f875bc64a;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;