X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-context-pid.c;h=ee2c4f0f5c36ebb116cfa66a8ec46658cc217920;hb=09fec6b43d11b3e0ece36f9e9e44b9627c1b565d;hp=5400db9632ab1f7f5ef332e88df78f219fce3c5f;hpb=ef200626172d529e42df4331f2abe92f875bc64a;p=lttng-modules.git diff --git a/lttng-context-pid.c b/lttng-context-pid.c index 5400db96..ee2c4f0f 100644 --- a/lttng-context-pid.c +++ b/lttng-context-pid.c @@ -40,11 +40,10 @@ void pid_record(struct lttng_ctx_field *field, int lttng_add_pid_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 = "pid"; field->event_field.type.atype = atype_integer; field->event_field.type.u.basic.integer.size = sizeof(pid_t) * CHAR_BIT;