diff options
-rw-r--r-- | net/tipc/bcast.c | 8 | ||||
-rw-r--r-- | net/tipc/bearer.c | 2 | ||||
-rw-r--r-- | net/tipc/eth_media.c | 2 | ||||
-rw-r--r-- | net/tipc/handler.c | 2 | ||||
-rw-r--r-- | net/tipc/name_distr.c | 2 | ||||
-rw-r--r-- | net/tipc/name_table.c | 2 | ||||
-rw-r--r-- | net/tipc/node.c | 2 | ||||
-rw-r--r-- | net/tipc/port.c | 4 | ||||
-rw-r--r-- | net/tipc/ref.c | 2 | ||||
-rw-r--r-- | net/tipc/socket.c | 2 | ||||
-rw-r--r-- | net/tipc/subscr.c | 2 |
11 files changed, 15 insertions, 15 deletions
diff --git a/net/tipc/bcast.c b/net/tipc/bcast.c index 9de32564984a..99a1469e300a 100644 --- a/net/tipc/bcast.c +++ b/net/tipc/bcast.c | |||
@@ -103,9 +103,9 @@ struct bclink { | |||
103 | }; | 103 | }; |
104 | 104 | ||
105 | 105 | ||
106 | static struct bcbearer *bcbearer = NULL; | 106 | static struct bcbearer *bcbearer; |
107 | static struct bclink *bclink = NULL; | 107 | static struct bclink *bclink; |
108 | static struct link *bcl = NULL; | 108 | static struct link *bcl; |
109 | static DEFINE_SPINLOCK(bc_lock); | 109 | static DEFINE_SPINLOCK(bc_lock); |
110 | 110 | ||
111 | /* broadcast-capable node map */ | 111 | /* broadcast-capable node map */ |
@@ -425,7 +425,7 @@ int tipc_bclink_send_msg(struct sk_buff *buf) | |||
425 | void tipc_bclink_recv_pkt(struct sk_buff *buf) | 425 | void tipc_bclink_recv_pkt(struct sk_buff *buf) |
426 | { | 426 | { |
427 | #if (TIPC_BCAST_LOSS_RATE) | 427 | #if (TIPC_BCAST_LOSS_RATE) |
428 | static int rx_count = 0; | 428 | static int rx_count; |
429 | #endif | 429 | #endif |
430 | struct tipc_msg *msg = buf_msg(buf); | 430 | struct tipc_msg *msg = buf_msg(buf); |
431 | struct tipc_node *node = tipc_node_find(msg_prevnode(msg)); | 431 | struct tipc_node *node = tipc_node_find(msg_prevnode(msg)); |
diff --git a/net/tipc/bearer.c b/net/tipc/bearer.c index e9136f0abe60..68e729045424 100644 --- a/net/tipc/bearer.c +++ b/net/tipc/bearer.c | |||
@@ -42,7 +42,7 @@ | |||
42 | #define MAX_ADDR_STR 32 | 42 | #define MAX_ADDR_STR 32 |
43 | 43 | ||
44 | static struct media media_list[MAX_MEDIA]; | 44 | static struct media media_list[MAX_MEDIA]; |
45 | static u32 media_count = 0; | 45 | static u32 media_count; |
46 | 46 | ||
47 | struct bearer tipc_bearers[MAX_BEARERS]; | 47 | struct bearer tipc_bearers[MAX_BEARERS]; |
48 | 48 | ||
diff --git a/net/tipc/eth_media.c b/net/tipc/eth_media.c index 5dfe66357794..b69092eb95d8 100644 --- a/net/tipc/eth_media.c +++ b/net/tipc/eth_media.c | |||
@@ -56,7 +56,7 @@ struct eth_bearer { | |||
56 | }; | 56 | }; |
57 | 57 | ||
58 | static struct eth_bearer eth_bearers[MAX_ETH_BEARERS]; | 58 | static struct eth_bearer eth_bearers[MAX_ETH_BEARERS]; |
59 | static int eth_started = 0; | 59 | static int eth_started; |
60 | static struct notifier_block notifier; | 60 | static struct notifier_block notifier; |
61 | 61 | ||
62 | /** | 62 | /** |
diff --git a/net/tipc/handler.c b/net/tipc/handler.c index 0c70010a7dfe..274c98e164b7 100644 --- a/net/tipc/handler.c +++ b/net/tipc/handler.c | |||
@@ -45,7 +45,7 @@ struct queue_item { | |||
45 | static struct kmem_cache *tipc_queue_item_cache; | 45 | static struct kmem_cache *tipc_queue_item_cache; |
46 | static struct list_head signal_queue_head; | 46 | static struct list_head signal_queue_head; |
47 | static DEFINE_SPINLOCK(qitem_lock); | 47 | static DEFINE_SPINLOCK(qitem_lock); |
48 | static int handler_enabled = 0; | 48 | static int handler_enabled; |
49 | 49 | ||
50 | static void process_signal_queue(unsigned long dummy); | 50 | static void process_signal_queue(unsigned long dummy); |
51 | 51 | ||
diff --git a/net/tipc/name_distr.c b/net/tipc/name_distr.c index a6c989fd4988..483c226c9581 100644 --- a/net/tipc/name_distr.c +++ b/net/tipc/name_distr.c | |||
@@ -73,7 +73,7 @@ struct distr_item { | |||
73 | */ | 73 | */ |
74 | 74 | ||
75 | static LIST_HEAD(publ_root); | 75 | static LIST_HEAD(publ_root); |
76 | static u32 publ_cnt = 0; | 76 | static u32 publ_cnt; |
77 | 77 | ||
78 | /** | 78 | /** |
79 | * publ_to_item - add publication info to a publication message | 79 | * publ_to_item - add publication info to a publication message |
diff --git a/net/tipc/name_table.c b/net/tipc/name_table.c index 46b2f31f96a1..ea3e94e9d939 100644 --- a/net/tipc/name_table.c +++ b/net/tipc/name_table.c | |||
@@ -104,7 +104,7 @@ struct name_table { | |||
104 | u32 local_publ_count; | 104 | u32 local_publ_count; |
105 | }; | 105 | }; |
106 | 106 | ||
107 | static struct name_table table = { NULL } ; | 107 | static struct name_table table; |
108 | static atomic_t rsv_publ_ok = ATOMIC_INIT(0); | 108 | static atomic_t rsv_publ_ok = ATOMIC_INIT(0); |
109 | DEFINE_RWLOCK(tipc_nametbl_lock); | 109 | DEFINE_RWLOCK(tipc_nametbl_lock); |
110 | 110 | ||
diff --git a/net/tipc/node.c b/net/tipc/node.c index 2ed162f91a08..3af53e327f49 100644 --- a/net/tipc/node.c +++ b/net/tipc/node.c | |||
@@ -44,7 +44,7 @@ static void node_established_contact(struct tipc_node *n_ptr); | |||
44 | 44 | ||
45 | static DEFINE_SPINLOCK(node_create_lock); | 45 | static DEFINE_SPINLOCK(node_create_lock); |
46 | 46 | ||
47 | u32 tipc_own_tag = 0; | 47 | u32 tipc_own_tag; |
48 | 48 | ||
49 | /** | 49 | /** |
50 | * tipc_node_create - create neighboring node | 50 | * tipc_node_create - create neighboring node |
diff --git a/net/tipc/port.c b/net/tipc/port.c index 78fcb75bb082..c23f3380d0a7 100644 --- a/net/tipc/port.c +++ b/net/tipc/port.c | |||
@@ -46,8 +46,8 @@ | |||
46 | 46 | ||
47 | #define MAX_REJECT_SIZE 1024 | 47 | #define MAX_REJECT_SIZE 1024 |
48 | 48 | ||
49 | static struct sk_buff *msg_queue_head = NULL; | 49 | static struct sk_buff *msg_queue_head; |
50 | static struct sk_buff *msg_queue_tail = NULL; | 50 | static struct sk_buff *msg_queue_tail; |
51 | 51 | ||
52 | DEFINE_SPINLOCK(tipc_port_list_lock); | 52 | DEFINE_SPINLOCK(tipc_port_list_lock); |
53 | static DEFINE_SPINLOCK(queue_lock); | 53 | static DEFINE_SPINLOCK(queue_lock); |
diff --git a/net/tipc/ref.c b/net/tipc/ref.c index 3974529a66e7..83116892528b 100644 --- a/net/tipc/ref.c +++ b/net/tipc/ref.c | |||
@@ -89,7 +89,7 @@ struct ref_table { | |||
89 | * have a reference value of 0 (although this is unlikely). | 89 | * have a reference value of 0 (although this is unlikely). |
90 | */ | 90 | */ |
91 | 91 | ||
92 | static struct ref_table tipc_ref_table = { NULL }; | 92 | static struct ref_table tipc_ref_table; |
93 | 93 | ||
94 | static DEFINE_RWLOCK(ref_table_lock); | 94 | static DEFINE_RWLOCK(ref_table_lock); |
95 | 95 | ||
diff --git a/net/tipc/socket.c b/net/tipc/socket.c index 0895dec2967c..18aad573f551 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c | |||
@@ -68,7 +68,7 @@ static const struct proto_ops msg_ops; | |||
68 | 68 | ||
69 | static struct proto tipc_proto; | 69 | static struct proto tipc_proto; |
70 | 70 | ||
71 | static int sockets_enabled = 0; | 71 | static int sockets_enabled; |
72 | 72 | ||
73 | static atomic_t tipc_queue_size = ATOMIC_INIT(0); | 73 | static atomic_t tipc_queue_size = ATOMIC_INIT(0); |
74 | 74 | ||
diff --git a/net/tipc/subscr.c b/net/tipc/subscr.c index acc30e1833c9..ca04479c3d42 100644 --- a/net/tipc/subscr.c +++ b/net/tipc/subscr.c | |||
@@ -70,7 +70,7 @@ struct top_srv { | |||
70 | spinlock_t lock; | 70 | spinlock_t lock; |
71 | }; | 71 | }; |
72 | 72 | ||
73 | static struct top_srv topsrv = { 0 }; | 73 | static struct top_srv topsrv; |
74 | 74 | ||
75 | /** | 75 | /** |
76 | * htohl - convert value to endianness used by destination | 76 | * htohl - convert value to endianness used by destination |