server: Make it explicit that the setsockopt() return value is ignored
[fio.git] / server.c
index b7347b43e3961fea588a85ac821811dfff7f61b3..1a070e5678f3359f0f9f3df903467962b14279e0 100644 (file)
--- a/server.c
+++ b/server.c
@@ -2154,7 +2154,8 @@ static int fio_init_server_ip(void)
        /*
         * Not fatal if fails, so just ignore it if that happens
         */
-       setsockopt(sk, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt));
+       if (setsockopt(sk, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt))) {
+       }
 #endif
 
        if (use_ipv6) {