Commit 4132facae1df653b5a78e0e32956218199026812

Authored by Allan Stephens
Committed by Paul Gortmaker
1 parent 2d627b92fd

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>

Showing 3 changed files with 3 additions and 7 deletions Side-by-side Diff

... ... @@ -2,7 +2,7 @@
2 2 * net/tipc/core.c: TIPC module code
3 3 *
4 4 * Copyright (c) 2003-2006, Ericsson AB
5   - * Copyright (c) 2005-2006, Wind River Systems
  5 + * Copyright (c) 2005-2006, 2010-2011, Wind River Systems
6 6 * All rights reserved.
7 7 *
8 8 * Redistribution and use in source and binary forms, with or without
... ... @@ -57,7 +57,6 @@
57 57  
58 58 int tipc_mode = TIPC_NOT_RUNNING;
59 59 int tipc_random;
60   -atomic_t tipc_user_count = ATOMIC_INIT(0);
61 60  
62 61 const char tipc_alphabet[] =
63 62 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.";
... ... @@ -2,7 +2,7 @@
2 2 * net/tipc/core.h: Include file for TIPC global declarations
3 3 *
4 4 * Copyright (c) 2005-2006, Ericsson AB
5   - * Copyright (c) 2005-2007, Wind River Systems
  5 + * Copyright (c) 2005-2007, 2010-2011, Wind River Systems
6 6 * All rights reserved.
7 7 *
8 8 * Redistribution and use in source and binary forms, with or without
... ... @@ -161,7 +161,6 @@
161 161 extern int tipc_mode;
162 162 extern int tipc_random;
163 163 extern const char tipc_alphabet[];
164   -extern atomic_t tipc_user_count;
165 164  
166 165  
167 166 /*
... ... @@ -2,7 +2,7 @@
2 2 * net/tipc/socket.c: TIPC socket API
3 3 *
4 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 6 * All rights reserved.
7 7 *
8 8 * Redistribution and use in source and binary forms, with or without
... ... @@ -241,7 +241,6 @@
241 241 tipc_set_portunreliable(tp_ptr->ref, 1);
242 242 }
243 243  
244   - atomic_inc(&tipc_user_count);
245 244 return 0;
246 245 }
247 246  
... ... @@ -321,7 +320,6 @@
321 320 sock_put(sk);
322 321 sock->sk = NULL;
323 322  
324   - atomic_dec(&tipc_user_count);
325 323 return res;
326 324 }
327 325