Merged in masayuki2009/nuttx.nuttx/remove_unused_variable (pull request #233)

Remove unused variable

Approved-by: Gregory Nutt
This commit is contained in:
Masayuki Ishikawa 2017-03-02 12:39:32 +00:00 committed by Gregory Nutt
commit 54b1f5ce2a
2 changed files with 3 additions and 5 deletions

View File

@ -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

View File

@ -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;
}