diff options
author | Ying Xue <ying.xue@windriver.com> | 2014-03-27 05:54:34 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-27 18:08:37 +0100 |
commit | f47de12b06c95cfc38c1c79986210c7620f264c4 (patch) | |
tree | 93689afb676155b5f71aee2cc91423cde9e56c76 /net/tipc/bcast.c | |
parent | tipc: convert tipc_bearers array to pointer list (diff) | |
download | linux-f47de12b06c95cfc38c1c79986210c7620f264c4.tar.xz linux-f47de12b06c95cfc38c1c79986210c7620f264c4.zip |
tipc: remove active flag from tipc_bearer structure
After the allocation of tipc_bearer structure instance is converted
from statical way to dynamical way, we identify whether a certain
tipc_bearer structure pointer is valid by checking whether the pointer
is NULL or not. So the active flag in tipc_bearer structure becomes
redundant.
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/bcast.c')
-rw-r--r-- | net/tipc/bcast.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/bcast.c b/net/tipc/bcast.c index b4f8c62a2777..47bb07aac16c 100644 --- a/net/tipc/bcast.c +++ b/net/tipc/bcast.c @@ -669,7 +669,7 @@ void tipc_bcbearer_sort(void) for (b_index = 0; b_index < MAX_BEARERS; b_index++) { struct tipc_bearer *b = bearer_list[b_index]; - if (!b || !b->active || !b->nodes.count) + if (!b || !b->nodes.count) continue; if (!bp_temp[b->priority].primary) |