diff options
author | Ying Xue <ying.xue@windriver.com> | 2014-03-27 04:54:34 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-27 17:08:37 (GMT) |
commit | f47de12b06c95cfc38c1c79986210c7620f264c4 (patch) | |
tree | 93689afb676155b5f71aee2cc91423cde9e56c76 /net/tipc/bcast.c | |
parent | 3874ccbba80f3b3127e94b1e055fb3d502a44718 (diff) | |
download | linux-f47de12b06c95cfc38c1c79986210c7620f264c4.tar.xz |
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 b4f8c62..47bb07a 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) |