Merged in masayuki2009/nuttx.nuttx/remove_unused_variable (pull request #233)
Remove unused variable Approved-by: Gregory Nutt
This commit is contained in:
commit
54b1f5ce2a
@ -107,7 +107,6 @@ int nanosleep(FAR const struct timespec *rqtp, FAR struct timespec *rmtp)
|
||||
irqstate_t flags;
|
||||
systime_t starttick;
|
||||
sigset_t set;
|
||||
struct siginfo value;
|
||||
int errval;
|
||||
#ifdef CONFIG_DEBUG_ASSERTIONS /* Warning avoidance */
|
||||
int ret;
|
||||
@ -141,9 +140,9 @@ int nanosleep(FAR const struct timespec *rqtp, FAR struct timespec *rmtp)
|
||||
/* nanosleep is a simple application of sigtimedwait. */
|
||||
|
||||
#ifdef CONFIG_DEBUG_ASSERTIONS /* Warning avoidance */
|
||||
ret = sigtimedwait(&set, &value, rqtp);
|
||||
ret = sigtimedwait(&set, NULL, rqtp);
|
||||
#else
|
||||
(void)sigtimedwait(&set, &value, rqtp);
|
||||
(void)sigtimedwait(&set, NULL, rqtp);
|
||||
#endif
|
||||
|
||||
/* sigtimedwait() cannot succeed. It should always return error with
|
||||
|
@ -74,7 +74,6 @@
|
||||
|
||||
int pause(void)
|
||||
{
|
||||
struct siginfo value;
|
||||
sigset_t set;
|
||||
int ret;
|
||||
|
||||
@ -93,7 +92,7 @@ int pause(void)
|
||||
* meaning that some unblocked signal was caught.
|
||||
*/
|
||||
|
||||
ret = sigwaitinfo(&set, &value);
|
||||
ret = sigwaitinfo(&set, NULL);
|
||||
leave_cancellation_point();
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user