Commit e3ec9c7d authored by Allan Stephens's avatar Allan Stephens Committed by David S. Miller
Browse files

tipc: remove zeroing assignments to static global variables



Cleans up TIPC's source code to eliminate the needless initialization
of static variables to zero.

These changes are purely cosmetic and do not alter the operation of TIPC
in any way.

Signed-off-by: default avatarAllan Stephens <Allan.Stephens@windriver.com>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2db9983a
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -103,9 +103,9 @@ struct bclink {
};


static struct bcbearer *bcbearer = NULL;
static struct bclink *bclink = NULL;
static struct link *bcl = NULL;
static struct bcbearer *bcbearer;
static struct bclink *bclink;
static struct link *bcl;
static DEFINE_SPINLOCK(bc_lock);

/* broadcast-capable node map */
@@ -425,7 +425,7 @@ int tipc_bclink_send_msg(struct sk_buff *buf)
void tipc_bclink_recv_pkt(struct sk_buff *buf)
{
#if (TIPC_BCAST_LOSS_RATE)
	static int rx_count = 0;
	static int rx_count;
#endif
	struct tipc_msg *msg = buf_msg(buf);
	struct tipc_node *node = tipc_node_find(msg_prevnode(msg));
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@
#define MAX_ADDR_STR 32

static struct media media_list[MAX_MEDIA];
static u32 media_count = 0;
static u32 media_count;

struct bearer tipc_bearers[MAX_BEARERS];

+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ struct eth_bearer {
};

static struct eth_bearer eth_bearers[MAX_ETH_BEARERS];
static int eth_started = 0;
static int eth_started;
static struct notifier_block notifier;

/**
+1 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ struct queue_item {
static struct kmem_cache *tipc_queue_item_cache;
static struct list_head signal_queue_head;
static DEFINE_SPINLOCK(qitem_lock);
static int handler_enabled = 0;
static int handler_enabled;

static void process_signal_queue(unsigned long dummy);

+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ struct distr_item {
 */

static LIST_HEAD(publ_root);
static u32 publ_cnt = 0;
static u32 publ_cnt;

/**
 * publ_to_item - add publication info to a publication message
Loading