Skip to content

Commit a2b58de

Browse files
ajstephensPaul Gortmaker
authored andcommitted
tipc: Remove unused field in bearer structure
Eliminates a field in TIPC's bearer objects that is set, but never referenced. Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
1 parent 50d3e63 commit a2b58de

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

‎net/tipc/bearer.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,6 @@ int tipc_enable_bearer(const char *name, u32 disc_domain, u32 priority)
560560
b_ptr->media = m_ptr;
561561
b_ptr->net_plane = bearer_id + 'A';
562562
b_ptr->active = 1;
563-
b_ptr->detect_scope = disc_domain;
564563
b_ptr->priority = priority;
565564
INIT_LIST_HEAD(&b_ptr->cong_links);
566565
INIT_LIST_HEAD(&b_ptr->links);

‎net/tipc/bearer.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ struct media {
105105
* @name: bearer name (format = media:interface)
106106
* @media: ptr to media structure associated with bearer
107107
* @priority: default link priority for bearer
108-
* @detect_scope: network address mask used during automatic link creation
109108
* @identity: array index of this bearer within TIPC bearer array
110109
* @link_req: ptr to (optional) structure making periodic link setup requests
111110
* @links: list of non-congested links associated with bearer
@@ -128,7 +127,6 @@ struct tipc_bearer {
128127
spinlock_t lock;
129128
struct media *media;
130129
u32 priority;
131-
u32 detect_scope;
132130
u32 identity;
133131
struct link_req *link_req;
134132
struct list_head links;

0 commit comments

Comments
 (0)