X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Flib%2Flttng-ctl%2Fchannel.c;h=5271aa13fbd76218fca47b8984c6a055fc84b35f;hp=5487d051b5013fd60b080491ce865966bc6ffeab;hb=a57a7f22e21b8b5dbb32e6b0096c81e869543aa2;hpb=f83bcd90ceb5ce659ffe9d7747d6f3366a09748a diff --git a/src/lib/lttng-ctl/channel.c b/src/lib/lttng-ctl/channel.c index 5487d051b..5271aa13f 100644 --- a/src/lib/lttng-ctl/channel.c +++ b/src/lib/lttng-ctl/channel.c @@ -289,10 +289,8 @@ lttng_notification_channel_get_next_notification( end_unlock: pthread_mutex_unlock(&channel->lock); + *_notification = notification; end: - if (_notification) { - *_notification = notification; - } return status; }