Fix warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
This commit is contained in:
@@ -453,8 +453,9 @@ int nr_process_mac_pdu(module_id_t module_idP,
|
|||||||
|
|
||||||
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);
|
||||||
@@ -484,10 +485,12 @@ int nr_process_mac_pdu(module_id_t module_idP,
|
|||||||
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:
|
||||||
|
|||||||
Reference in New Issue
Block a user