Clean-up: remove useless check of event name
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 24 Aug 2018 01:13:48 +0000 (21:13 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 24 Aug 2018 01:15:18 +0000 (21:15 -0400)
'name' in the lttng_event structure is a fixed-size array, which
will cause this condition to always evaluate to true.

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

index 7f05655ecd7371a60c6fc3b5b9e1bd9eef768f84..c5c7564b69afd9f01a36c1b402d9ec39b8fe1937 100644 (file)
@@ -2093,8 +2093,7 @@ static int _cmd_enable_event(struct ltt_session *session,
                        ret = validate_ust_event_name(event->name);
                        if (ret) {
                                WARN("Userspace event name %s failed validation.",
-                                               event->name ?
-                                               event->name : "NULL");
+                                               event->name);
                                ret = LTTNG_ERR_INVALID_EVENT_NAME;
                                goto error;
                        }
This page took 0.028471 seconds and 4 git commands to generate.