hal fhss timer: removed unnecessary and potentially unsafe memset

pull/11308/head
Jarkko Paso 2019-08-16 11:46:10 +03:00 committed by adbridge
parent d66621e85d
commit e5df7ff973
1 changed files with 0 additions and 1 deletions

View File

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