Change in osmo-bsc[master]: codec_pref: fix missing breaks in switch-case statement

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Sat Sep 15 07:56:06 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/10964 )

Change subject: codec_pref: fix missing breaks in switch-case statement
......................................................................

codec_pref: fix missing breaks in switch-case statement

In function test_codec_support_bts() the switch case statement lacks
break; statements for some cases. This may lead into messed up codec
decisions.

- Add missing break statements

Change-Id: Ib5400a0a0a8a39fa714bd087df345160bed5cc61
---
M src/osmo-bsc/codec_pref.c
1 file changed, 4 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/osmo-bsc/codec_pref.c b/src/osmo-bsc/codec_pref.c
index 96c2c38..924f77f 100644
--- a/src/osmo-bsc/codec_pref.c
+++ b/src/osmo-bsc/codec_pref.c
@@ -148,15 +148,19 @@
 	case GSM0808_PERM_FR2:
 		if (bts_codec->efr)
 			return true;
+		break;
 	case GSM0808_PERM_FR3:
 		if (bts_codec->amr)
 			return true;
+		break;
 	case GSM0808_PERM_HR1:
 		if (bts_codec->hr)
 			return true;
+		break;
 	case GSM0808_PERM_HR3:
 		if (bts_codec->amr)
 			return true;
+		break;
 	default:
 		return false;
 	}

-- 
To view, visit https://gerrit.osmocom.org/10964
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib5400a0a0a8a39fa714bd087df345160bed5cc61
Gerrit-Change-Number: 10964
Gerrit-PatchSet: 2
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180915/5c7cd019/attachment.htm>


More information about the gerrit-log mailing list