tipc: Eliminate unused field in bearer structure
authorAllan Stephens <allan.stephens@windriver.com>
Mon, 30 May 2011 19:43:02 +0000 (15:43 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 24 Jun 2011 20:18:16 +0000 (16:18 -0400)
Gets rid of counter that records the number of times a bearer has
resumed after congestion or blocking, since the value is never
referenced anywhere.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/bearer.c
net/tipc/bearer.h

index 85209eadfae6ac86fa3d1d3058eb01f428829a5e..85eba9c08ee9667e978d548c0aaea4d7506b2e5f 100644 (file)
@@ -402,7 +402,6 @@ void tipc_bearer_lock_push(struct tipc_bearer *b_ptr)
 void tipc_continue(struct tipc_bearer *b_ptr)
 {
        spin_lock_bh(&b_ptr->lock);
-       b_ptr->continue_count++;
        if (!list_empty(&b_ptr->cong_links))
                tipc_k_signal((Handler)tipc_bearer_lock_push, (unsigned long)b_ptr);
        b_ptr->blocked = 0;
index 31d6172b20fd3988718a048b1619751c14ba1420..5ad70eff1ebf95cab1fdf05d04c1e43129c7b920 100644 (file)
@@ -107,7 +107,6 @@ struct media {
  * @link_req: ptr to (optional) structure making periodic link setup requests
  * @links: list of non-congested links associated with bearer
  * @cong_links: list of congested links associated with bearer
- * @continue_count: # of times bearer has resumed after congestion or blocking
  * @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
@@ -129,7 +128,6 @@ struct tipc_bearer {
        struct link_req *link_req;
        struct list_head links;
        struct list_head cong_links;
-       u32 continue_count;
        int active;
        char net_plane;
        struct tipc_node_map nodes;