From 22cdf1cb5277ede16227fa66c9d7c3ca0df814e8 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 11 Jan 2024 11:12:52 -0500 Subject: [PATCH] MT#55283 remove unused function argument This is always set to true Change-Id: I5ad622ad46be1def30d3e65280559feb12b82fb4 --- daemon/sdp.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/daemon/sdp.c b/daemon/sdp.c index 0c15b36bf..182d84a15 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -2444,7 +2444,7 @@ strip_with_subst: /* processing existing media attributes (those present in offer/answer) */ static int process_media_attributes(struct sdp_chopper *chop, struct sdp_media *sdp, - sdp_ng_flags *flags, struct call_media *media, bool strip_attr_other) + sdp_ng_flags *flags, struct call_media *media) { struct sdp_attributes *attrs = &sdp->attributes; struct sdp_attribute *attr /* , *a */; @@ -2507,9 +2507,7 @@ static int process_media_attributes(struct sdp_chopper *chop, struct sdp_media * case ATTR_OTHER: case ATTR_SSRC: case ATTR_MSID: - if (strip_attr_other) - goto strip; - break; + goto strip; default: break; @@ -2543,8 +2541,7 @@ static int process_media_attributes(struct sdp_chopper *chop, struct sdp_media * break; case ATTR_EXTMAP: - if (strip_attr_other) - goto strip; + goto strip; if (MEDIA_ISSET(media, PASSTHRU)) break; if (flags->strip_extmap) @@ -3198,7 +3195,7 @@ static const char *replace_sdp_media_section(struct sdp_chopper *chop, struct ca /* all unknown type attributes will stripped here */ err = "failed to process media attributes"; - if (process_media_attributes(chop, sdp_media, flags, call_media, true)) + if (process_media_attributes(chop, sdp_media, flags, call_media)) goto error; copy_up_to_end_of(chop, &sdp_media->s);