From 4b9efe2090743b15ae877f02a6cde98055bbeeb4 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 17 Jun 2015 00:07:20 +0000 Subject: [PATCH] scst_tg: Convert dynamic into static initialization This patch does not change any functionality. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6361 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_tg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scst/src/scst_tg.c b/scst/src/scst_tg.c index 6a714014c..7b04f0eaa 100644 --- a/scst/src/scst_tg.c +++ b/scst/src/scst_tg.c @@ -38,7 +38,7 @@ static const struct alua_state_and_name scst_tg_state_names[] = { { SCST_TG_STATE_TRANSITIONING, "transitioning" }, }; -static struct list_head scst_dev_group_list; +static LIST_HEAD(scst_dev_group_list); #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 31) || \ defined(RHEL_MAJOR) && RHEL_MAJOR -0 <= 5 @@ -1092,7 +1092,6 @@ out: void scst_tg_init(void) { - INIT_LIST_HEAD(&scst_dev_group_list); } void scst_tg_cleanup(void)