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/.

dexter gerrit-no-reply at lists.osmocom.org
Fri Sep 14 18:03:49 UTC 2018


dexter has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/64/10964/1

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: newchange
Gerrit-Change-Id: Ib5400a0a0a8a39fa714bd087df345160bed5cc61
Gerrit-Change-Number: 10964
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180914/dbcc4a72/attachment.htm>


More information about the gerrit-log mailing list