Review remarks
This commit is contained in:
committed by
francescomani
parent
931cf0a868
commit
8198272571
@@ -292,7 +292,7 @@ static inline notifiedFIFO_elt_t *pullTpool(notifiedFIFO_t *responseFifo, tpool_
|
||||
|
||||
if (t->traceFd > 0) {
|
||||
ssize_t b = write(t->traceFd, msg, sizeof(*msg));
|
||||
AssertFatal(b > 0, "error in write(): %d, %s\n", errno, strerror(errno));
|
||||
AssertFatal(b == sizeof(*msg), "error in write(): %d, %s\n", errno, strerror(errno));
|
||||
}
|
||||
|
||||
return msg;
|
||||
@@ -309,7 +309,7 @@ static inline notifiedFIFO_elt_t *tryPullTpool(notifiedFIFO_t *responseFifo, tpo
|
||||
|
||||
if (t->traceFd > 0) {
|
||||
ssize_t b = write(t->traceFd, msg, sizeof(*msg));
|
||||
AssertFatal(b > 0, "error in write(): %d, %s\n", errno, strerror(errno));
|
||||
AssertFatal(b == sizeof(*msg), "error in write(): %d, %s\n", errno, strerror(errno));
|
||||
}
|
||||
|
||||
return msg;
|
||||
|
||||
@@ -140,10 +140,11 @@ schedule_MBMS_NFAPI(module_id_t module_idP, uint8_t CC_id, frame_t frameP,
|
||||
mac_rlc_status_resp_t rlc_status;
|
||||
int num_mtch=0;
|
||||
int msi_length=0, i, k;
|
||||
int8_t j = -1;
|
||||
|
||||
unsigned char sdu_lcids[11], num_sdus = 0, offset = 0;
|
||||
uint16_t sdu_lengths[11], sdu_length_total = 0;
|
||||
unsigned char mch_buffer[MAX_DLSCH_PAYLOAD_BYTES]; // check the max value, this is for dlsch only
|
||||
int16_t j = -1;
|
||||
|
||||
COMMON_channels_t *cc = &RC.mac[module_idP]->common_channels[CC_id];
|
||||
|
||||
@@ -1124,7 +1125,8 @@ schedule_MBMS(module_id_t module_idP, uint8_t CC_id, frame_t frameP,
|
||||
unsigned char sdu_lcids[11], num_sdus = 0, offset = 0;
|
||||
uint16_t sdu_lengths[11], sdu_length_total = 0;
|
||||
unsigned char mch_buffer[MAX_DLSCH_PAYLOAD_BYTES]; // check the max value, this is for dlsch only
|
||||
int8_t j = -1;
|
||||
int16_t j = -1;
|
||||
|
||||
COMMON_channels_t *cc = &RC.mac[module_idP]->common_channels[CC_id];
|
||||
|
||||
cc->MCH_pdu.Pdu_size = 0;
|
||||
|
||||
@@ -1950,7 +1950,8 @@ rrc_ue_process_rrcConnectionReconfiguration(
|
||||
uint8_t *buffer;
|
||||
} msg;
|
||||
|
||||
msg.buffer = calloc(total_size, sizeof(uint8_t));
|
||||
msg.buffer = calloc(total_size, sizeof(*msg.buffer));
|
||||
AssertFatal(msg.buffer != NULL, "Error in memory allocation\n");
|
||||
msg.RadioBearer_size = nr_RadioBearer->size;
|
||||
msg.SecondaryCellGroup_size = nr_SecondaryCellGroup->size;
|
||||
msg.trans_id = rrcConnectionReconfiguration->rrc_TransactionIdentifier;
|
||||
|
||||
Reference in New Issue
Block a user