diff options
author | Ying Xue <ying.xue@windriver.com> | 2012-08-10 02:58:42 -0400 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2012-08-10 10:10:10 -0400 |
commit | 4dd40f0cd99a3500c6df80eb8f537678559c761e (patch) | |
tree | 24429c48cdb67570dd2aad4d695948e12b51e7c2 /fs/dlm | |
parent | b4c798cf695dc7cee9798a686128461ad0070115 (diff) |
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: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm')
-rw-r--r-- | fs/dlm/lowcomms.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c index 3e6aaccce951..3637f3f18824 100644 --- a/fs/dlm/lowcomms.c +++ b/fs/dlm/lowcomms.c | |||
@@ -473,7 +473,7 @@ int dlm_lowcomms_connect_node(int nodeid) | |||
473 | } | 473 | } |
474 | 474 | ||
475 | /* Make a socket active */ | 475 | /* Make a socket active */ |
476 | static int add_sock(struct socket *sock, struct connection *con) | 476 | static void add_sock(struct socket *sock, struct connection *con) |
477 | { | 477 | { |
478 | con->sock = sock; | 478 | con->sock = sock; |
479 | 479 | ||
@@ -483,7 +483,6 @@ static int add_sock(struct socket *sock, struct connection *con) | |||
483 | con->sock->sk->sk_state_change = lowcomms_state_change; | 483 | con->sock->sk->sk_state_change = lowcomms_state_change; |
484 | con->sock->sk->sk_user_data = con; | 484 | con->sock->sk->sk_user_data = con; |
485 | con->sock->sk->sk_allocation = GFP_NOFS; | 485 | con->sock->sk->sk_allocation = GFP_NOFS; |
486 | return 0; | ||
487 | } | 486 | } |
488 | 487 | ||
489 | /* Add the port number to an IPv6 or 4 sockaddr and return the address | 488 | /* Add the port number to an IPv6 or 4 sockaddr and return the address |