From ea4a132a4b7ab22fdd05ccef0799cc255f05385e Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Sat, 14 Dec 2013 05:51:37 +0000 Subject: [PATCH] scst: Remove the unused variable scst_main_lock Signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5142 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_main.c | 3 --- scst/src/scst_priv.h | 2 -- 2 files changed, 5 deletions(-) diff --git a/scst/src/scst_main.c b/scst/src/scst_main.c index a6bf13269..1226a6759 100644 --- a/scst/src/scst_main.c +++ b/scst/src/scst_main.c @@ -95,8 +95,6 @@ struct list_head scst_dev_list; struct list_head scst_dev_type_list; struct list_head scst_virtual_dev_type_list; -spinlock_t scst_main_lock; - static struct kmem_cache *scst_mgmt_cachep; mempool_t *scst_mgmt_mempool; static struct kmem_cache *scst_mgmt_stub_cachep; @@ -2425,7 +2423,6 @@ static int __init init_scst(void) INIT_LIST_HEAD(&scst_dev_list); INIT_LIST_HEAD(&scst_dev_type_list); INIT_LIST_HEAD(&scst_virtual_dev_type_list); - spin_lock_init(&scst_main_lock); #ifdef CONFIG_SCST_PROC INIT_LIST_HEAD(&scst_acg_list); #endif diff --git a/scst/src/scst_priv.h b/scst/src/scst_priv.h index 358492276..325d92cd8 100644 --- a/scst/src/scst_priv.h +++ b/scst/src/scst_priv.h @@ -142,8 +142,6 @@ extern struct kmem_cache *scst_tgt_cachep; extern struct kmem_cache *scst_tgtd_cachep; extern struct kmem_cache *scst_acgd_cachep; -extern spinlock_t scst_main_lock; - extern unsigned long scst_flags; extern struct list_head scst_template_list; extern struct list_head scst_dev_list;