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>
This commit is contained in:
@@ -118,7 +118,6 @@ struct tipc_media {
|
||||
* @tolerance: default link tolerance for bearer
|
||||
* @identity: array index of this bearer within TIPC bearer array
|
||||
* @link_req: ptr to (optional) structure making periodic link setup requests
|
||||
* @active: non-zero if bearer structure is represents a bearer
|
||||
* @net_plane: network plane ('A' through 'H') currently associated with bearer
|
||||
* @nodes: indicates which nodes in cluster can be reached through bearer
|
||||
*
|
||||
@@ -138,7 +137,6 @@ struct tipc_bearer {
|
||||
u32 tolerance;
|
||||
u32 identity;
|
||||
struct tipc_link_req *link_req;
|
||||
int active;
|
||||
char net_plane;
|
||||
struct tipc_node_map nodes;
|
||||
};
|
||||
|
Reference in New Issue
Block a user