Skip to content

Commit

Permalink
dlm: convert add_sock routine return value type to void
Browse files Browse the repository at this point in the history
Since add_sock() always returns a success code - 0, its return
value type should be changed from integer to void.

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David Teigland <teigland@redhat.com>
  • Loading branch information
Ying Xue authored and David Teigland committed Aug 10, 2012
1 parent b4c798c commit 4dd40f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/dlm/lowcomms.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ int dlm_lowcomms_connect_node(int nodeid)
}

/* 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;

Expand All @@ -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_user_data = con;
con->sock->sk->sk_allocation = GFP_NOFS;
return 0;
}

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

0 comments on commit 4dd40f0

Please sign in to comment.