Clean code base from redundant verification
[lttng-tools.git] / src / bin / lttng-sessiond / dispatch.c
index 8ef3c38cf21996de7014646c51cc4ac2ffb75dfa..a637f23dea8e8e665b3a87b88644cc18a7337bb8 100644 (file)
@@ -61,7 +61,7 @@ static void update_ust_app(int app_sock)
                        continue;
                }
                session_lock(sess);
-               if (!sess->ust_session) {
+               if (!sess->active || !sess->ust_session) {
                        goto unlock_session;
                }
 
@@ -144,11 +144,6 @@ static void sanitize_wait_queue(struct ust_reg_wait_queue *wait_queue)
                uint32_t revents = LTTNG_POLL_GETEV(&events, i);
                int pollfd = LTTNG_POLL_GETFD(&events, i);
 
-               if (!revents) {
-                       /* No activity for this FD (poll implementation). */
-                       continue;
-               }
-
                cds_list_for_each_entry_safe(wait_node, tmp_wait_node,
                                &wait_queue->head, head) {
                        if (pollfd == wait_node->app->sock &&
This page took 0.02468 seconds and 5 git commands to generate.