You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/05/18 18:40:53 UTC

[nuttx] 07/18: libs/libc/string: remove redundant parenthesis

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

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 8d565fc0e35d0b08f96f34e9e02d9e6976d1fa62
Author: Petro Karashchenko <pe...@gmail.com>
AuthorDate: Wed May 17 23:06:57 2023 +0300

    libs/libc/string: remove redundant parenthesis
    
    Signed-off-by: Petro Karashchenko <pe...@gmail.com>
---
 libs/libc/string/lib_timingsafe_bcmp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libs/libc/string/lib_timingsafe_bcmp.c b/libs/libc/string/lib_timingsafe_bcmp.c
index 8473b61249..c150ffde3d 100644
--- a/libs/libc/string/lib_timingsafe_bcmp.c
+++ b/libs/libc/string/lib_timingsafe_bcmp.c
@@ -39,5 +39,5 @@ int timingsafe_bcmp(FAR const void *b1, FAR const void *b2, size_t n)
       ret |= *p1++ ^ *p2++;
     }
 
-  return (ret != 0);
+  return ret != 0;
 }