Remove an unused variable when calling sigtimedwait()
This commit is contained in:
parent
6d2bd682f6
commit
4043239cfc
@ -107,7 +107,6 @@ int nanosleep(FAR const struct timespec *rqtp, FAR struct timespec *rmtp)
|
|||||||
irqstate_t flags;
|
irqstate_t flags;
|
||||||
systime_t starttick;
|
systime_t starttick;
|
||||||
sigset_t set;
|
sigset_t set;
|
||||||
struct siginfo value;
|
|
||||||
int errval;
|
int errval;
|
||||||
#ifdef CONFIG_DEBUG_ASSERTIONS /* Warning avoidance */
|
#ifdef CONFIG_DEBUG_ASSERTIONS /* Warning avoidance */
|
||||||
int ret;
|
int ret;
|
||||||
@ -141,9 +140,9 @@ int nanosleep(FAR const struct timespec *rqtp, FAR struct timespec *rmtp)
|
|||||||
/* nanosleep is a simple application of sigtimedwait. */
|
/* nanosleep is a simple application of sigtimedwait. */
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_ASSERTIONS /* Warning avoidance */
|
#ifdef CONFIG_DEBUG_ASSERTIONS /* Warning avoidance */
|
||||||
ret = sigtimedwait(&set, &value, rqtp);
|
ret = sigtimedwait(&set, NULL, rqtp);
|
||||||
#else
|
#else
|
||||||
(void)sigtimedwait(&set, &value, rqtp);
|
(void)sigtimedwait(&set, NULL, rqtp);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* sigtimedwait() cannot succeed. It should always return error with
|
/* sigtimedwait() cannot succeed. It should always return error with
|
||||||
|
Loading…
Reference in New Issue
Block a user