Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4dd40f0c authored by Ying Xue's avatar Ying Xue Committed by David Teigland
Browse files

dlm: convert add_sock routine return value type to void



Since add_sock() always returns a success code - 0, its return
value type should be changed from integer to void.

Signed-off-by: default avatarYing Xue <ying.xue@windriver.com>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent b4c798cf
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -473,7 +473,7 @@ int dlm_lowcomms_connect_node(int nodeid)
}
}


/* Make a socket active */
/* Make a socket active */
static int add_sock(struct socket *sock, struct connection *con)
static void add_sock(struct socket *sock, struct connection *con)
{
{
	con->sock = sock;
	con->sock = sock;


@@ -483,7 +483,6 @@ static int add_sock(struct socket *sock, struct connection *con)
	con->sock->sk->sk_state_change = lowcomms_state_change;
	con->sock->sk->sk_state_change = lowcomms_state_change;
	con->sock->sk->sk_user_data = con;
	con->sock->sk->sk_user_data = con;
	con->sock->sk->sk_allocation = GFP_NOFS;
	con->sock->sk->sk_allocation = GFP_NOFS;
	return 0;
}
}


/* Add the port number to an IPv6 or 4 sockaddr and return the address
/* Add the port number to an IPv6 or 4 sockaddr and return the address