mirror of https://gerrit.osmocom.org/libosmocore
abis: Use the right return value for abis_nm_pchan4chcomb
abis_nm_pchan4chcomb will return a pchan for a given channel combination but returned a value of the channel combination. Fix it to return the physical channel combination. Fixes: Coverity CID 1040767
This commit is contained in:
parent
3244702058
commit
d4d87c5427
|
@ -43,7 +43,7 @@ const char *abis_nm_test_name(uint8_t test);
|
|||
|
||||
|
||||
int abis_nm_chcomb4pchan(enum gsm_phys_chan_config pchan);
|
||||
enum abis_nm_chan_comb abis_nm_pchan4chcomb(uint8_t chcomb);
|
||||
enum gsm_phys_chan_config abis_nm_pchan4chcomb(uint8_t chcomb);
|
||||
|
||||
/*! @} */
|
||||
|
||||
|
|
|
@ -430,7 +430,7 @@ int abis_nm_chcomb4pchan(enum gsm_phys_chan_config pchan)
|
|||
}
|
||||
|
||||
/*! \brief Obtain physical channel config for OML Channel Combination */
|
||||
enum abis_nm_chan_comb abis_nm_pchan4chcomb(uint8_t chcomb)
|
||||
enum gsm_phys_chan_config abis_nm_pchan4chcomb(uint8_t chcomb)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < ARRAY_SIZE(chcomb4pchan); i++) {
|
||||
|
|
Loading…
Reference in New Issue