Remove the unneeded void cast

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-04-18 00:52:11 +08:00 committed by Petro Karashchenko
parent b80ef1df87
commit 3760ab5fc8
3 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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