You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/04/17 20:31:43 UTC

[incubator-nuttx-apps] branch master updated: Remove the unneeded void cast

This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 3760ab5fc Remove the unneeded void cast
3760ab5fc is described below

commit 3760ab5fc8beda334c2a63e5bb33d9581c8df68b
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Mon Apr 18 00:52:11 2022 +0800

    Remove the unneeded void cast
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 examples/camera/camera_bkgd.c    | 2 +-
 examples/termios/termios_main.c  | 2 +-
 testing/getprime/getprime_main.c | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/examples/camera/camera_bkgd.c b/examples/camera/camera_bkgd.c
index 3fa80f380..436b02f83 100644
--- a/examples/camera/camera_bkgd.c
+++ b/examples/camera/camera_bkgd.c
@@ -264,7 +264,7 @@ int nximage_initialize(void)
        * are connected.
        */
 
-      (void)sem_wait(&g_nximage.sem);
+      sem_wait(&g_nximage.sem);
     }
 
   /* Set background color to black */
diff --git a/examples/termios/termios_main.c b/examples/termios/termios_main.c
index 70c2d1cd3..5f3039ee4 100644
--- a/examples/termios/termios_main.c
+++ b/examples/termios/termios_main.c
@@ -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
    * attributes to see if they took effect;
diff --git a/testing/getprime/getprime_main.c b/testing/getprime/getprime_main.c
index 7d6b730aa..f00801859 100644
--- a/testing/getprime/getprime_main.c
+++ b/testing/getprime/getprime_main.c
@@ -181,9 +181,9 @@ int main(int argc, FAR char *argv[])
       ASSERT(0 < n && n <= MAX_THREADS);
     }
 
-  (void)clock_gettime(CLOCK_REALTIME, &ts0);
+  clock_gettime(CLOCK_REALTIME, &ts0);
   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)ts0.tv_sec * NSEC_PER_SEC) + ts0.tv_nsec);