* [PATCH] dlm: convert add_sock routine return value type to void
@ 2012-08-10 6:58 Ying Xue
2012-08-10 14:26 ` David Teigland
0 siblings, 1 reply; 2+ messages in thread
From: Ying Xue @ 2012-08-10 6:58 UTC (permalink / raw)
To: teigland; +Cc: linux-kernel
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>
---
fs/dlm/lowcomms.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
index e7b0ac0..8789309 100644
--- a/fs/dlm/lowcomms.c
+++ b/fs/dlm/lowcomms.c
@@ -348,7 +348,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;
@@ -358,7 +358,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
--
1.7.11
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] dlm: convert add_sock routine return value type to void
2012-08-10 6:58 [PATCH] dlm: convert add_sock routine return value type to void Ying Xue
@ 2012-08-10 14:26 ` David Teigland
0 siblings, 0 replies; 2+ messages in thread
From: David Teigland @ 2012-08-10 14:26 UTC (permalink / raw)
To: Ying Xue; +Cc: linux-kernel
On Fri, Aug 10, 2012 at 02:58:42PM +0800, Ying Xue wrote:
> Since add_sock() always returns a success code - 0, its return
> value type should be changed from integer to void.
Thanks, I've pushed those to my next branch.
Dave
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-10 14:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-10 6:58 [PATCH] dlm: convert add_sock routine return value type to void Ying Xue
2012-08-10 14:26 ` David Teigland
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.