[PATCH v2 46/48] bsd-user: style tweak: Return is not a function call.

imp@bsdimp.com posted 48 patches 4 years, 9 months ago
Maintainers: Kyle Evans <kevans@freebsd.org>, Warner Losh <imp@bsdimp.com>
[PATCH v2 46/48] bsd-user: style tweak: Return is not a function call.
Posted by imp@bsdimp.com 4 years, 9 months ago
From: Warner Losh <imp@bsdimp.com>

Signed-off-by: Warner Losh <imp@bsdimp.com>
---
 bsd-user/syscall.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bsd-user/syscall.c b/bsd-user/syscall.c
index 36ffa6a880..1f6b93923c 100644
--- a/bsd-user/syscall.c
+++ b/bsd-user/syscall.c
@@ -187,7 +187,7 @@ oidfmt(int *oid, int len, char *fmt, uint32_t *kind)
     if (fmt) {
         strcpy(fmt, (char *)(buf + sizeof(uint32_t)));
     }
-    return (0);
+    return 0;
 }
 
 /*
-- 
2.22.1


Re: [PATCH v2 46/48] bsd-user: style tweak: Return is not a function call.
Posted by Richard Henderson 4 years, 9 months ago
On 4/24/21 9:00 AM, imp@bsdimp.com wrote:
> From: Warner Losh<imp@bsdimp.com>
> 
> Signed-off-by: Warner Losh<imp@bsdimp.com>
> ---
>   bsd-user/syscall.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~