From e5df7ff9736dda63cfff482a5222eef8a21bc21a Mon Sep 17 00:00:00 2001 From: Jarkko Paso Date: Fri, 16 Aug 2019 11:46:10 +0300 Subject: [PATCH] hal fhss timer: removed unnecessary and potentially unsafe memset --- .../nanostack-hal-mbed-cmsis-rtos/arm_hal_fhss_timer.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/features/nanostack/nanostack-hal-mbed-cmsis-rtos/arm_hal_fhss_timer.cpp b/features/nanostack/nanostack-hal-mbed-cmsis-rtos/arm_hal_fhss_timer.cpp index 81e4f7ee76..7f4916a4fa 100644 --- a/features/nanostack/nanostack-hal-mbed-cmsis-rtos/arm_hal_fhss_timer.cpp +++ b/features/nanostack/nanostack-hal-mbed-cmsis-rtos/arm_hal_fhss_timer.cpp @@ -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]; } }