MINOR: proto: fix coding style
Remove redundant brackets for 'if' statements that contain only one instruction.
This commit is contained in:
parent
83ab1479d0
commit
0e93549d2a
@ -303,9 +303,8 @@ int quic_connect_server(struct connection *conn, int flags)
|
||||
|
||||
/* 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 :
|
||||
|
@ -302,9 +302,8 @@ int tcp_connect_server(struct connection *conn, int flags)
|
||||
|
||||
/* 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) {
|
||||
|
@ -241,9 +241,8 @@ static int uxst_connect_server(struct connection *conn, int flags)
|
||||
|
||||
/* 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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user