hal fhss timer: removed unnecessary and potentially unsafe memset

pull/11250/head
Jarkko Paso 2019-08-16 11:46:10 +03:00
parent 033fffea84
commit 3e9d7b3598
1 changed files with 0 additions and 1 deletions

View File

@ -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];
}
}