sig_timewait:remove useless assert

use sclock_t repalce int64 and int32

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
anjiahao 2023-05-04 15:17:17 +08:00 committed by Petro Karashchenko
parent 40d62a40a1
commit 1e22163b57

View File

@ -242,11 +242,7 @@ int nxsig_timedwait(FAR const sigset_t *set, FAR struct siginfo *info,
sigset_t intersection;
FAR sigpendq_t *sigpend;
irqstate_t flags;
#ifdef CONFIG_SYSTEM_TIME64
int64_t waitticks;
#else
int32_t waitticks;
#endif
sclock_t waitticks;
bool switch_needed;
int ret;
@ -328,7 +324,6 @@ int nxsig_timedwait(FAR const sigset_t *set, FAR struct siginfo *info,
waitticks = ((uint64_t)timeout->tv_sec * NSEC_PER_SEC +
(uint64_t)timeout->tv_nsec + NSEC_PER_TICK - 1) /
NSEC_PER_TICK;
DEBUGASSERT(waitticks <= UINT32_MAX);
#else
uint32_t waitmsec;