mirror of https://github.com/ARMmbed/mbed-os.git
hal fhss timer: removed unnecessary and potentially unsafe memset
parent
033fffea84
commit
3e9d7b3598
|
@ -77,7 +77,6 @@ static fhss_timeout_s *allocate_timeout(void)
|
|||
{
|
||||
for (int i = 0; i < NUMBER_OF_SIMULTANEOUS_TIMEOUTS; i++) {
|
||||
if (fhss_timeout[i].fhss_timer_callback == NULL) {
|
||||
memset(&fhss_timeout[i], 0, sizeof(fhss_timeout_s));
|
||||
return &fhss_timeout[i];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue