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 83ffedcd1 porting/npl/linux: Remove dead ticks < 0 check in
callout_reset
83ffedcd1 is described below
commit 83ffedcd16c1aae127b58226a32e618908a8a401
Author: Deomid rojer Ryabkov <[email protected]>
AuthorDate: Tue Mar 31 23:43:48 2026 +0300
porting/npl/linux: Remove dead ticks < 0 check in callout_reset
ble_npl_time_t is uint32_t, so ticks < 0 is always false.
---
porting/npl/linux/src/os_callout.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/porting/npl/linux/src/os_callout.c
b/porting/npl/linux/src/os_callout.c
index 90c190cef..49e59fc46 100644
--- a/porting/npl/linux/src/os_callout.c
+++ b/porting/npl/linux/src/os_callout.c
@@ -83,10 +83,6 @@ ble_npl_callout_reset(struct ble_npl_callout *c,
ble_npl_time_t ticks)
{
struct itimerspec its;
- if (ticks < 0) {
- return BLE_NPL_EINVAL;
- }
-
if (ticks == 0) {
ticks = 1;
}