aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/socket.c
diff options
context:
space:
mode:
authorAllan Stephens <Allan.Stephens@windriver.com>2011-01-07 13:12:12 -0500
committerPaul Gortmaker <paul.gortmaker@windriver.com>2011-02-23 18:05:06 -0500
commit4132facae1df653b5a78e0e32956218199026812 (patch)
tree572f80908589b1c82e7fe90d6a64798dba2be1a2 /net/tipc/socket.c
parent2d627b92fd1e39d83c3ee0b9d410403f98cb3981 (diff)
tipc: Remove unused global variable tipc_user_count
Eliminates a global variable that was previously used by TIPC's user registry to track the number of distinct applications using TIPC. Due to the recent elimination of the user registry this variable no longer serves any purpose and can be removed. Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc/socket.c')
-rw-r--r--net/tipc/socket.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c
index 2b02a3a80313..893ca6eb5b41 100644
--- a/net/tipc/socket.c
+++ b/net/tipc/socket.c
@@ -2,7 +2,7 @@
2 * net/tipc/socket.c: TIPC socket API 2 * net/tipc/socket.c: TIPC socket API
3 * 3 *
4 * Copyright (c) 2001-2007, Ericsson AB 4 * Copyright (c) 2001-2007, Ericsson AB
5 * Copyright (c) 2004-2008, Wind River Systems 5 * Copyright (c) 2004-2008, 2010-2011, Wind River Systems
6 * All rights reserved. 6 * All rights reserved.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
@@ -241,7 +241,6 @@ static int tipc_create(struct net *net, struct socket *sock, int protocol,
241 tipc_set_portunreliable(tp_ptr->ref, 1); 241 tipc_set_portunreliable(tp_ptr->ref, 1);
242 } 242 }
243 243
244 atomic_inc(&tipc_user_count);
245 return 0; 244 return 0;
246} 245}
247 246
@@ -321,7 +320,6 @@ static int release(struct socket *sock)
321 sock_put(sk); 320 sock_put(sk);
322 sock->sk = NULL; 321 sock->sk = NULL;
323 322
324 atomic_dec(&tipc_user_count);
325 return res; 323 return res;
326} 324}
327 325