Cleanup: mark utils_get_home_dir as returning a const string
[lttng-tools.git] / src / bin / lttng-sessiond / notification-thread.c
index 7998f7e21fbcf73818472312889a6794abe095d3..3686d72f7015e9b728eb2d6ab246a1e5a4d14f9a 100644 (file)
@@ -172,7 +172,7 @@ char *get_notification_channel_sock_path(void)
                        goto error;
                }
        } else {
-               char *home_path = utils_get_home_dir();
+               const char *home_path = utils_get_home_dir();
 
                if (!home_path) {
                        ERR("Can't get HOME directory for socket creation");
@@ -570,9 +570,6 @@ void *thread_notification(void *data)
                        int fd = LTTNG_POLL_GETFD(&state.events, i);
                        uint32_t revents = LTTNG_POLL_GETEV(&state.events, i);
 
-                       if (!revents) {
-                               continue;
-                       }
                        DBG("[notification-thread] Handling fd (%i) activity (%u)", fd, revents);
 
                        if (fd == state.notification_channel_socket) {
This page took 0.023789 seconds and 4 git commands to generate.