Skip to content

Commit e5df7ff

Browse files
Jarkko Pasoadbridge
authored andcommitted
hal fhss timer: removed unnecessary and potentially unsafe memset
1 parent d66621e commit e5df7ff

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

features/nanostack/nanostack-hal-mbed-cmsis-rtos/arm_hal_fhss_timer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ static fhss_timeout_s *allocate_timeout(void)
7171
{
7272
for (int i = 0; i < NUMBER_OF_SIMULTANEOUS_TIMEOUTS; i++) {
7373
if (fhss_timeout[i].fhss_timer_callback == NULL) {
74-
memset(&fhss_timeout[i], 0, sizeof(fhss_timeout_s));
7574
return &fhss_timeout[i];
7675
}
7776
}

0 commit comments

Comments
 (0)