Cleanup: No check of the return value of lttng_ht_del()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 26 Nov 2014 23:01:45 +0000 (18:01 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 26 Nov 2014 23:01:45 +0000 (18:01 -0500)
*** CID 1230590:  Unchecked return value  (CHECKED_RETURN)

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/trace-ust.c

index b9fdf9f0af213bbf9f402b297df9dbc9308ce9b1..971c56e7c4c9e1a1e3826c953c9e4496618f4fbb 100644 (file)
@@ -759,7 +759,9 @@ void trace_ust_destroy_session(struct ltt_ust_session *session)
 
        rcu_read_lock();
        cds_lfht_for_each_entry(session->agents->ht, &iter.iter, agt, node.node) {
-               lttng_ht_del(session->agents, &iter);
+               int ret = lttng_ht_del(session->agents, &iter);
+
+               assert(!ret);
                agent_destroy(agt);
        }
        rcu_read_unlock();
This page took 0.034273 seconds and 4 git commands to generate.