X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Flttng-ctl%2Fchannel.c;h=5271aa13fbd76218fca47b8984c6a055fc84b35f;hb=a57a7f22e21b8b5dbb32e6b0096c81e869543aa2;hp=5487d051b5013fd60b080491ce865966bc6ffeab;hpb=f83bcd90ceb5ce659ffe9d7747d6f3366a09748a;p=lttng-tools.git 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; }