Fix warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
This commit is contained in:
@@ -451,10 +451,11 @@ int nr_process_mac_pdu(module_id_t module_idP,
|
|||||||
0);
|
0);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case UL_SCH_LCID_DTCH:
|
case UL_SCH_LCID_DTCH:
|
||||||
// check if LCID is valid at current time.
|
// check if LCID is valid at current time.
|
||||||
if (!get_mac_len(pduP, pdu_len, &mac_len, &mac_subheader_len))
|
if (!get_mac_len(pduP, pdu_len, &mac_len, &mac_subheader_len)) {
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
struct timespec time_request;
|
struct timespec time_request;
|
||||||
clock_gettime(CLOCK_REALTIME, &time_request);
|
clock_gettime(CLOCK_REALTIME, &time_request);
|
||||||
@@ -471,24 +472,26 @@ int nr_process_mac_pdu(module_id_t module_idP,
|
|||||||
mac_len);
|
mac_len);
|
||||||
UE_info->mac_stats[UE_id].lc_bytes_rx[rx_lcid] += mac_len;
|
UE_info->mac_stats[UE_id].lc_bytes_rx[rx_lcid] += mac_len;
|
||||||
|
|
||||||
mac_rlc_data_ind(module_idP,
|
mac_rlc_data_ind(module_idP,
|
||||||
UE_info->rnti[UE_id],
|
UE_info->rnti[UE_id],
|
||||||
module_idP,
|
module_idP,
|
||||||
frameP,
|
frameP,
|
||||||
ENB_FLAG_YES,
|
ENB_FLAG_YES,
|
||||||
MBMS_FLAG_NO,
|
MBMS_FLAG_NO,
|
||||||
rx_lcid,
|
rx_lcid,
|
||||||
(char *)(pduP + mac_subheader_len),
|
(char *)(pduP + mac_subheader_len),
|
||||||
mac_len,
|
mac_len,
|
||||||
1,
|
1,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
/* Updated estimated buffer when receiving data */
|
/* Updated estimated buffer when receiving data */
|
||||||
if (sched_ctrl->estimated_ul_buffer >= mac_len)
|
if (sched_ctrl->estimated_ul_buffer >= mac_len) {
|
||||||
sched_ctrl->estimated_ul_buffer -= mac_len;
|
sched_ctrl->estimated_ul_buffer -= mac_len;
|
||||||
else
|
} else {
|
||||||
sched_ctrl->estimated_ul_buffer = 0;
|
sched_ctrl->estimated_ul_buffer = 0;
|
||||||
break;
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
LOG_E(NR_MAC, "Received unknown MAC header (LCID = 0x%02x)\n", rx_lcid);
|
LOG_E(NR_MAC, "Received unknown MAC header (LCID = 0x%02x)\n", rx_lcid);
|
||||||
|
|||||||
Reference in New Issue
Block a user