From db38165d77a3a57c815b97195bbb154aa833c92d Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 28 Feb 2025 14:31:33 -0400 Subject: [PATCH] MT#61625 annotate some nonnull arguments Change-Id: Iaa312dd2953f364d6768e69d402839fb917d1f42 --- daemon/call.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/call.c b/daemon/call.c index ee6bcebce..677581336 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -3315,6 +3315,7 @@ static bool __unsubscribe_media(struct call_media * which, struct call_media * f /** * Deletes all offer/answer media subscriptions. */ +__attribute__((nonnull(1, 2))) static void __unsubscribe_all_offer_answer_medias(struct call_media * cm, medias_q *medias) { for (__auto_type l = cm->media_subscribers.head; l; ) { @@ -3328,8 +3329,7 @@ static void __unsubscribe_all_offer_answer_medias(struct call_media * cm, medias __auto_type next = l->next; struct call_media * other_cm = ms->media; - if (medias) - t_queue_push_tail(medias, other_cm); + t_queue_push_tail(medias, other_cm); __unsubscribe_media(other_cm, cm); __unsubscribe_media(cm, other_cm);