tbf: Fix copy and paste in the set_mode routine

This is the second attempt to fix what looks like a copy and paste
issue. The code assigns m_current_cs_ul and then compares the _dl
variant, then assigns m_current_cs_ul with a default value. It seems
to indicate that _ul should be used.

Fixes: Coverity: CID 1351733
This commit is contained in:
Holger Hans Peter Freyther 2016-03-04 18:24:50 +01:00
parent 99db40ad2d
commit fd263b0dfd
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ void GprsMs::set_mode(GprsCodingScheme::Mode mode)
if (!m_current_cs_ul.isEgprs()) {
m_current_cs_ul = GprsCodingScheme::getEgprsByNum(
m_bts->bts_data()->initial_mcs_ul);
if (!m_current_cs_dl.isValid())
if (!m_current_cs_ul.isValid())
m_current_cs_ul = GprsCodingScheme::MCS1;
}
if (!m_current_cs_dl.isEgprs()) {