X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-context-ppid.c;h=9f647ab1a079eac1066057cebefea2205a7b8ee7;hb=09fec6b43d11b3e0ece36f9e9e44b9627c1b565d;hp=342aa343337b2a55a380da763651a9e22225cf96;hpb=ef200626172d529e42df4331f2abe92f875bc64a;p=lttng-modules.git diff --git a/lttng-context-ppid.c b/lttng-context-ppid.c index 342aa343..9f647ab1 100644 --- a/lttng-context-ppid.c +++ b/lttng-context-ppid.c @@ -43,11 +43,10 @@ void ppid_record(struct lttng_ctx_field *field, int lttng_add_ppid_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 = "ppid"; field->event_field.type.atype = atype_integer; field->event_field.type.u.basic.integer.size = sizeof(pid_t) * CHAR_BIT;