From 5d3b33803f19e208b4c8744120fb84082ec2c625 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Thu, 10 Mar 2022 08:34:01 -0300 Subject: sunrpc: Remove extra parenthesis on comparison clang issues a 'equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]' in this. Instead of suppress the warning, just follow the next comparison style. --- sunrpc/key_call.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sunrpc') diff --git a/sunrpc/key_call.c b/sunrpc/key_call.c index b0b29e0..1072c97 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"); -- cgit v1.1