cosmetic: Fix ws between if keyword and parenthesis

Change-Id: I5932f21c58e76552f7187a175b8e281c5846536c
This commit is contained in:
Pau Espin 2020-10-27 10:24:57 +01:00 committed by pespin
parent 4d1663594b
commit 16705a4db1
5 changed files with 11 additions and 11 deletions

View File

@ -170,7 +170,7 @@ csnStreamDecoder(csnStream_t* ar, const CSN_DESCR* pDescr, struct bitvec *vector
LOGPC(DCSN1, LOGL_DEBUG, "%s = %u | ", pDescr->sz , (unsigned)*pui8);
/* end add the bit value to protocol tree */
}
else if(pDescr->may_be_null)
else if (pDescr->may_be_null)
{
pui8 = pui8DATA(data, pDescr->offset);
*pui8 = 0;
@ -228,7 +228,7 @@ csnStreamDecoder(csnStream_t* ar, const CSN_DESCR* pDescr, struct bitvec *vector
remaining_bits_len -= no_of_bits;
bit_offset += no_of_bits;
}
else if(pDescr->may_be_null)
else if (pDescr->may_be_null)
{
if (no_of_bits <= 8)
{
@ -1502,7 +1502,7 @@ gint16 csnStreamEncoder(csnStream_t* ar, const CSN_DESCR* pDescr, struct bitvec
LOGPC(DCSN1, LOGL_DEBUG, "%s = %u | ", pDescr->sz , (unsigned)*pui8);
/* end add the bit value to protocol tree */
}
else if(pDescr->may_be_null)
else if (pDescr->may_be_null)
{
LOGPC(DCSN1, LOGL_DEBUG, "%s = NULL | ", pDescr->sz);
}
@ -1555,7 +1555,7 @@ gint16 csnStreamEncoder(csnStream_t* ar, const CSN_DESCR* pDescr, struct bitvec
remaining_bits_len -= no_of_bits;
bit_offset += no_of_bits;
}
else if(pDescr->may_be_null)
else if (pDescr->may_be_null)
{
LOGPC(DCSN1, LOGL_DEBUG, "%s = NULL | ", pDescr->sz);
}

View File

@ -853,7 +853,7 @@ void Encoding::encode_rbb(const char *show_rbb, uint8_t *rbb)
if (show_rbb[i] == 'R')
rbb_byte |= 1<< (7-(i%8));
if((i%8) == 7) {
if ((i%8) == 7) {
rbb[i/8] = rbb_byte;
rbb_byte = 0;
}

View File

@ -6056,7 +6056,7 @@ void decode_gsm_rlcmac_uplink_data(struct bitvec *vector, RlcMacUplinkDataBlock_
LOGPC(DRLCMACDATA, LOGL_NOTICE, "E_1 = %u ", (unsigned)(data->E_1));
if(data->E_1 == 0) // Extension octet follows immediately
if (data->E_1 == 0) // Extension octet follows immediately
{
// Octet 3 (optional)
i = 0;
@ -6071,7 +6071,7 @@ void decode_gsm_rlcmac_uplink_data(struct bitvec *vector, RlcMacUplinkDataBlock_
i++;
} while((data->M[i-1] == 1)&&(data->E[i-1] == 0));
}
if(data->TI == 1) // TLLI field is present
if (data->TI == 1) // TLLI field is present
{
data->TLLI = bitvec_read_field(vector, &readIndex, 32);
LOGPC(DRLCMACDATA, LOGL_NOTICE, "TLLI = %08x ", data->TLLI);
@ -6132,7 +6132,7 @@ void encode_gsm_rlcmac_downlink_data(struct bitvec *vector, RlcMacDownlinkDataBl
LOGPC(DRLCMACDATA, LOGL_NOTICE, "E_1 = %u ", (unsigned)(data->E_1));
// Octet 3 (optional)
if(data->E_1 == 0)
if (data->E_1 == 0)
{
i = 0;
do

View File

@ -79,7 +79,7 @@ static void tbf_print_vty_info(struct vty *vty, gprs_rlcmac_tbf *tbf)
ul_tbf->window_size(), win->v_q(), win->v_r());
vty_out(vty, "%s", VTY_NEWLINE);
vty_out(vty, " TBF Statistics:%s", VTY_NEWLINE);
if(GPRS == tbf->ms()->mode()) {
if (GPRS == tbf->ms()->mode()) {
vty_out_rate_ctr_group(vty, " ", ul_tbf->m_ul_gprs_ctrs);
} else {
vty_out_rate_ctr_group(vty, " ", ul_tbf->m_ul_egprs_ctrs);
@ -92,7 +92,7 @@ static void tbf_print_vty_info(struct vty *vty, gprs_rlcmac_tbf *tbf)
win->window_stalled() ? " STALLED" : "");
vty_out(vty, "%s", VTY_NEWLINE);
vty_out_rate_ctr_group(vty, " ", tbf->m_ctrs);
if(GPRS == tbf->ms()->mode()) {
if (GPRS == tbf->ms()->mode()) {
vty_out_rate_ctr_group(vty, " ", dl_tbf->m_dl_gprs_ctrs);
} else {
vty_out_rate_ctr_group(vty, " ", dl_tbf->m_dl_egprs_ctrs);

View File

@ -704,7 +704,7 @@ int gprs_rlcmac_pdch::rcv_control_block(const uint8_t *data, uint8_t data_len,
else
bts()->send_gsmtap_meas(PCU_GSMTAP_C_UL_CTRL, true, trx_no(), ts_no, GSMTAP_CHANNEL_PACCH, fn, data, data_len, meas);
if(rc < 0) {
if (rc < 0) {
LOGP(DRLCMACUL, LOGL_ERROR, "Dropping Uplink Control Block with invalid "
"content, decode failed: %d)\n", rc);
goto free_ret;