Skip to content

Commit 1e22163

Browse files
anjiahao1pkarashchenko
authored andcommitted
sig_timewait:remove useless assert
use sclock_t repalce int64 and int32 Signed-off-by: anjiahao <[email protected]>
1 parent 40d62a4 commit 1e22163

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

sched/signal/sig_timedwait.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,7 @@ int nxsig_timedwait(FAR const sigset_t *set, FAR struct siginfo *info,
242242
sigset_t intersection;
243243
FAR sigpendq_t *sigpend;
244244
irqstate_t flags;
245-
#ifdef CONFIG_SYSTEM_TIME64
246-
int64_t waitticks;
247-
#else
248-
int32_t waitticks;
249-
#endif
245+
sclock_t waitticks;
250246
bool switch_needed;
251247
int ret;
252248

@@ -328,7 +324,6 @@ int nxsig_timedwait(FAR const sigset_t *set, FAR struct siginfo *info,
328324
waitticks = ((uint64_t)timeout->tv_sec * NSEC_PER_SEC +
329325
(uint64_t)timeout->tv_nsec + NSEC_PER_TICK - 1) /
330326
NSEC_PER_TICK;
331-
DEBUGASSERT(waitticks <= UINT32_MAX);
332327
#else
333328
uint32_t waitmsec;
334329

0 commit comments

Comments
 (0)