Skip to contentSkip to conversation

CONNECTOR: make cn_already_initialized static

PATCH Applied Li Zefan 3 participants 3 messages Feb 27, 2008 Network drivers

lore
Share & tools
lore

Li Zefan

author
#0 lore raw

PATCH 1/1 CONNECTOR: make cn_already_initialized static

It is used in connector.c only, so make it static.

---
 drivers/connector/connector.c |    2 +-
 include/linux/connector.h     |    2 --
 2 files changed, 1 insertions(+), 3 deletions(-)
drivers/connector/connector.c +1 -1
index fea2d3e..85e2ba7 100644
@@ -47,7 +47,7 @@ static LIST_HEAD(notify_list);
 
 static struct cn_dev cdev;
 
-int cn_already_initialized = 0;
+static int cn_already_initialized;
 
 /*
  * msg->seq and msg->ack are used to determine message genealogy.
include/linux/connector.h +0 -2
index da6dd95..96a89d3 100644
@@ -170,7 +170,5 @@ int cn_cb_equal(struct cb_id *, struct cb_id *);
 
 void cn_queue_wrapper(struct work_struct *work);
 
-extern int cn_already_initialized;
-
 #endif				/* __KERNEL__ */
 #endif				/* __CONNECTOR_H */
Signature · 1 line
1.5.4.rc3
#2 lore raw

Hi.

Quoted 5 lines · David Miller
Quoted 3 lines

It is used in connector.c only, so make it static.

Applied, thanks.

Thanks for resolving this guys.

Signature · 1 line
	Evgeniy Polyakov