Change in osmo-bsc[master]: bsc_vty: fix wrong else-if 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/.

laforge gerrit-no-reply at lists.osmocom.org
Sun Sep 20 09:51:53 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/20202 )

Change subject: bsc_vty: fix wrong else-if statement
......................................................................

bsc_vty: fix wrong else-if statement

Related: CID#214331
Change-Id: I1b0f324a66757278f7c95d25a5192d4234432a6b
---
M src/osmo-bsc/bsc_vty.c
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  fixeria: Looks good to me, approved



diff --git a/src/osmo-bsc/bsc_vty.c b/src/osmo-bsc/bsc_vty.c
index b3ea01f..003939b 100644
--- a/src/osmo-bsc/bsc_vty.c
+++ b/src/osmo-bsc/bsc_vty.c
@@ -5019,7 +5019,8 @@
 				lchan_t = GSM_LCHAN_TCH_F;
 			else if (lchan->ts->pchan_on_init == GSM_PCHAN_TCH_F_TCH_H_PDCH && !strcmp(codec_str, "hr"))
 				lchan_t = GSM_LCHAN_TCH_H;
-			else if ((lchan->ts->pchan_on_init == GSM_PCHAN_TCH_F_PDCH || GSM_PCHAN_TCH_F_TCH_H_PDCH)
+			else if ((lchan->ts->pchan_on_init == GSM_PCHAN_TCH_F_PDCH
+				  || lchan->ts->pchan_on_init == GSM_PCHAN_TCH_F_TCH_H_PDCH)
 				 && !strcmp(codec_str, "fr"))
 				lchan_t = GSM_LCHAN_TCH_F;
 			else {

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/20202
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I1b0f324a66757278f7c95d25a5192d4234432a6b
Gerrit-Change-Number: 20202
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200920/12e59691/attachment.htm>


More information about the gerrit-log mailing list