Skip to content

Commit 3e9d7b3

Browse files
author
Jarkko Paso
committed
hal fhss timer: removed unnecessary and potentially unsafe memset
1 parent 033fffe commit 3e9d7b3

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
@@ -77,7 +77,6 @@ static fhss_timeout_s *allocate_timeout(void)
7777
{
7878
for (int i = 0; i < NUMBER_OF_SIMULTANEOUS_TIMEOUTS; i++) {
7979
if (fhss_timeout[i].fhss_timer_callback == NULL) {
80-
memset(&fhss_timeout[i], 0, sizeof(fhss_timeout_s));
8180
return &fhss_timeout[i];
8281
}
8382
}

0 commit comments

Comments
 (0)