X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-context-comm.c;h=ede3f51a0d4bd9ffd9568d75a28e1fc4ebc75668;hb=09fec6b43d11b3e0ece36f9e9e44b9627c1b565d;hp=6e51bf854a3bad17765085d493c7536d94686b81;hpb=ef200626172d529e42df4331f2abe92f875bc64a;p=lttng-modules.git diff --git a/lttng-context-comm.c b/lttng-context-comm.c index 6e51bf85..ede3f51a 100644 --- a/lttng-context-comm.c +++ b/lttng-context-comm.c @@ -41,11 +41,10 @@ void comm_record(struct lttng_ctx_field *field, int lttng_add_comm_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 = "comm"; field->event_field.type.atype = atype_array; field->event_field.type.u.array.elem_type.atype = atype_integer;