Remove redundant brackets for 'if' statements that contain only one
instruction.
/* perform common checks on obtained socket FD, return appropriate Stream Error Flag in case of failure */
fd = conn->handle.fd = sock_create_server_socket(conn, be, &stream_err);
- if (fd == -1) {
+ if (fd == -1)
return stream_err;
- }
/* FD is ok, perform protocol specific settings */
/* allow specific binding :
/* perform common checks on obtained socket FD, return appropriate Stream Error Flag in case of failure */
fd = conn->handle.fd = sock_create_server_socket(conn, be, &stream_err);
- if (fd == -1) {
+ if (fd == -1)
return stream_err;
- }
/* FD is OK, continue with protocol specific settings */
if (be->options & PR_O_TCP_SRV_KA) {
/* perform common checks on obtained socket FD, return appropriate Stream Error Flag in case of failure */
fd = conn->handle.fd = sock_create_server_socket(conn, be, &stream_err);
- if (fd == -1) {
+ if (fd == -1)
return stream_err;
- }
/* FD is ok, continue with protocol specific settings */
if (global.tune.server_sndbuf)