From f6d559f2f1b57d03e4db703beeecb2db1948b163 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Fri, 17 Oct 2025 16:12:46 -0300 Subject: [PATCH] sunrpc: Remove extra parenthesis on comparison clang issues: key_call.c:459:20: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality] 459 | if ((kcp->client == (CLIENT *) NULL)) Instead of suppress the warning, just use the more usual comparison style. Reviewed-by: Sam James --- sunrpc/key_call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sunrpc/key_call.c b/sunrpc/key_call.c index c8e414b1df..98abeaf40a 100644 --- a/sunrpc/key_call.c +++ b/sunrpc/key_call.c @@ -456,7 +456,7 @@ getkeyserv_handle (int vers) return kcp->client; } - if ((kcp->client == (CLIENT *) NULL)) + if (kcp->client == (CLIENT *) NULL) /* Use the AF_UNIX transport */ kcp->client = clnt_create ("/var/run/keyservsock", KEY_PROG, vers, "unix");