drivers/timers: use DEBUGASSERT check abnormal values

use DEBUGASSERT to check abnormal values in drivers/timers.c

Signed-off-by: fangpeina <fangpeina@xiaomi.com>
This commit is contained in:
fangpeina
2025-07-23 21:44:09 +08:00
committed by Xiang Xiao
parent bc35ea17d2
commit 5a22ad4dbb
+1 -4
View File
@@ -411,10 +411,7 @@ static int timer_poll(FAR struct file *filep,
irqstate_t flags;
int ret = OK;
if (upper == NULL || fds == NULL)
{
return -EINVAL;
}
DEBUGASSERT(upper != NULL && fds != NULL);
flags = enter_critical_section();