mirror of https://github.com/PentHertz/srsLTE.git
fix some non-critical warnings found by Coverity scan
This commit is contained in:
parent
58803d1b3e
commit
a98a94e74b
|
@ -177,7 +177,10 @@ int main(int argc, char** argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialise sequence object
|
// Initialise sequence object
|
||||||
srslte_sequence_init(&sequence, max_length);
|
if (srslte_sequence_init(&sequence, max_length) != SRSLTE_SUCCESS) {
|
||||||
|
fprintf(stderr, "Error initializing sequence object\n");
|
||||||
|
return SRSLTE_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
printf("%8s; %8s; %8s; %8s; %8s; %8s; %8s\n", "seed", "length", "GEN", "XOR PS", "XOR 16", "XOR 8", "Passed");
|
printf("%8s; %8s; %8s; %8s; %8s; %8s; %8s\n", "seed", "length", "GEN", "XOR PS", "XOR 16", "XOR 8", "Passed");
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,7 @@ int dl_grant_with_sib1_test()
|
||||||
}
|
}
|
||||||
|
|
||||||
// pass MIB to compute SIB1 parameters
|
// pass MIB to compute SIB1 parameters
|
||||||
srslte_mib_nb_t mib;
|
srslte_mib_nb_t mib = {};
|
||||||
mib.sched_info_sib1 = 3;
|
mib.sched_info_sib1 = 3;
|
||||||
// srslte_mib_nb_printf(stdout, cell, &mib);
|
// srslte_mib_nb_printf(stdout, cell, &mib);
|
||||||
srslte_nbiot_ue_dl_set_mib(&ue_dl, mib);
|
srslte_nbiot_ue_dl_set_mib(&ue_dl, mib);
|
||||||
|
@ -108,7 +108,7 @@ int dl_grant_with_sib2_test()
|
||||||
}
|
}
|
||||||
|
|
||||||
// pass MIB to compute SIB1 parameters
|
// pass MIB to compute SIB1 parameters
|
||||||
srslte_mib_nb_t mib;
|
srslte_mib_nb_t mib = {};
|
||||||
mib.sched_info_sib1 = 3;
|
mib.sched_info_sib1 = 3;
|
||||||
srslte_nbiot_ue_dl_set_mib(&ue_dl, mib);
|
srslte_nbiot_ue_dl_set_mib(&ue_dl, mib);
|
||||||
|
|
||||||
|
|
|
@ -496,7 +496,7 @@ int main(int argc, char** argv)
|
||||||
|
|
||||||
ret = SRSLTE_SUCCESS;
|
ret = SRSLTE_SUCCESS;
|
||||||
|
|
||||||
if (measure_delay) {
|
if (measure_delay && delay_count > 0) {
|
||||||
for (uint32_t r = 1; r < nof_radios; r++) {
|
for (uint32_t r = 1; r < nof_radios; r++) {
|
||||||
printf("Radio %d is delayed %.1f samples from radio 0;\n", r, delay_idx[r] / delay_count);
|
printf("Radio %d is delayed %.1f samples from radio 0;\n", r, delay_idx[r] / delay_count);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue