From: Jonathan Rajotte Date: Tue, 25 Jul 2017 19:51:34 +0000 (-0400) Subject: Cleanup: remove dead assignment X-Git-Tag: v2.10.0~31 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=ac4717e44ea1a1b87a917a38cb1469718768926d;hp=f08f3088e7b6ed6e3ae512149f9202ea63bd6305;p=lttng-tools.git Cleanup: remove dead assignment ret is not used for further error propagation. Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/ust-registry.c b/src/bin/lttng-sessiond/ust-registry.c index 88d663170..d63c75008 100644 --- a/src/bin/lttng-sessiond/ust-registry.c +++ b/src/bin/lttng-sessiond/ust-registry.c @@ -920,7 +920,7 @@ int ust_registry_session_init(struct ust_registry_session **sessionp, session->enums = lttng_ht_new(0, LTTNG_HT_TYPE_STRING); if (!session->enums) { - ret = -ENOMEM; + ERR("Failed to create enums hash table"); goto error; } /* hash/match functions are specified at call site. */