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 <sam@gentoo.org>
This commit is contained in:
Adhemerval Zanella 2025-10-17 16:12:46 -03:00
parent 64a0f4b776
commit f6d559f2f1
1 changed files with 1 additions and 1 deletions

View File

@ -456,7 +456,7 @@ getkeyserv_handle (int vers)
return kcp->client; return kcp->client;
} }
if ((kcp->client == (CLIENT *) NULL)) if (kcp->client == (CLIENT *) NULL)
/* Use the AF_UNIX transport */ /* Use the AF_UNIX transport */
kcp->client = clnt_create ("/var/run/keyservsock", KEY_PROG, vers, "unix"); kcp->client = clnt_create ("/var/run/keyservsock", KEY_PROG, vers, "unix");