Remove the unneeded void cast
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
b80ef1df87
commit
3760ab5fc8
@ -264,7 +264,7 @@ int nximage_initialize(void)
|
|||||||
* are connected.
|
* are connected.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(void)sem_wait(&g_nximage.sem);
|
sem_wait(&g_nximage.sem);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set background color to black */
|
/* Set background color to black */
|
||||||
|
@ -123,7 +123,7 @@ int main(int argc, FAR char *argv[])
|
|||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
(void)close(fd);
|
close(fd);
|
||||||
|
|
||||||
/* Now, we should reopen the terminal with the new
|
/* Now, we should reopen the terminal with the new
|
||||||
* attributes to see if they took effect;
|
* attributes to see if they took effect;
|
||||||
|
@ -181,9 +181,9 @@ int main(int argc, FAR char *argv[])
|
|||||||
ASSERT(0 < n && n <= MAX_THREADS);
|
ASSERT(0 < n && n <= MAX_THREADS);
|
||||||
}
|
}
|
||||||
|
|
||||||
(void)clock_gettime(CLOCK_REALTIME, &ts0);
|
clock_gettime(CLOCK_REALTIME, &ts0);
|
||||||
get_prime_in_parallel(n);
|
get_prime_in_parallel(n);
|
||||||
(void)clock_gettime(CLOCK_REALTIME, &ts1);
|
clock_gettime(CLOCK_REALTIME, &ts1);
|
||||||
|
|
||||||
elapsed = (((uint64_t)ts1.tv_sec * NSEC_PER_SEC) + ts1.tv_nsec);
|
elapsed = (((uint64_t)ts1.tv_sec * NSEC_PER_SEC) + ts1.tv_nsec);
|
||||||
elapsed -= (((uint64_t)ts0.tv_sec * NSEC_PER_SEC) + ts0.tv_nsec);
|
elapsed -= (((uint64_t)ts0.tv_sec * NSEC_PER_SEC) + ts0.tv_nsec);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user