From: Jérémie Galarneau Date: Fri, 24 Aug 2018 01:13:48 +0000 (-0400) Subject: Clean-up: remove useless check of event name X-Git-Tag: v2.11.0-rc1~109 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=bbcab087101aeaf9811074f9e622290e503104ca;p=lttng-tools.git Clean-up: remove useless check of event name '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 --- diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index 7f05655ec..c5c7564b6 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -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; }