You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2021/06/30 08:12:40 UTC
[mynewt-nimble] branch master updated: Removed an illogical check
from npl_freertos_callout_reset
This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
The following commit(s) were added to refs/heads/master by this push:
new c337666 Removed an illogical check from npl_freertos_callout_reset
c337666 is described below
commit c337666a34220e63d8eaf97b4f08bd889598092a
Author: Avamander <av...@gmail.com>
AuthorDate: Tue Jun 22 00:41:32 2021 +0300
Removed an illogical check from npl_freertos_callout_reset
---
porting/npl/freertos/src/npl_os_freertos.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/porting/npl/freertos/src/npl_os_freertos.c b/porting/npl/freertos/src/npl_os_freertos.c
index 87936bd..ecc5cd7 100644
--- a/porting/npl/freertos/src/npl_os_freertos.c
+++ b/porting/npl/freertos/src/npl_os_freertos.c
@@ -279,10 +279,6 @@ npl_freertos_callout_reset(struct ble_npl_callout *co, ble_npl_time_t ticks)
{
BaseType_t woken1, woken2, woken3;
- if (ticks < 0) {
- return BLE_NPL_INVALID_PARAM;
- }
-
if (ticks == 0) {
ticks = 1;
}