mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 05:42:05 +08:00
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user