diff options
author | Andy Grover <agrover@redhat.com> | 2012-07-30 18:54:17 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-09-17 19:15:46 -0400 |
commit | 283669d282836c5b96faca9bcca184efb9618975 (patch) | |
tree | 47fd5dfaf0316e06adee265bd603bcd9a1f4ac4b /drivers/target | |
parent | 593e909166c884077b0f56274a97a8e90a0926af (diff) |
target: Cleanup transport_subsystem_check_init
Move static into function body from file scope.
Remove extraneous return statement
Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_transport.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index 223acc175c2b..fd0d0f03326b 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c | |||
@@ -55,8 +55,6 @@ | |||
55 | #include "target_core_pr.h" | 55 | #include "target_core_pr.h" |
56 | #include "target_core_ua.h" | 56 | #include "target_core_ua.h" |
57 | 57 | ||
58 | static int sub_api_initialized; | ||
59 | |||
60 | static struct workqueue_struct *target_completion_wq; | 58 | static struct workqueue_struct *target_completion_wq; |
61 | static struct kmem_cache *se_sess_cache; | 59 | static struct kmem_cache *se_sess_cache; |
62 | struct kmem_cache *se_ua_cache; | 60 | struct kmem_cache *se_ua_cache; |
@@ -195,6 +193,7 @@ u32 scsi_get_new_index(scsi_index_t type) | |||
195 | void transport_subsystem_check_init(void) | 193 | void transport_subsystem_check_init(void) |
196 | { | 194 | { |
197 | int ret; | 195 | int ret; |
196 | static int sub_api_initialized; | ||
198 | 197 | ||
199 | if (sub_api_initialized) | 198 | if (sub_api_initialized) |
200 | return; | 199 | return; |
@@ -212,7 +211,6 @@ void transport_subsystem_check_init(void) | |||
212 | pr_err("Unable to load target_core_pscsi\n"); | 211 | pr_err("Unable to load target_core_pscsi\n"); |
213 | 212 | ||
214 | sub_api_initialized = 1; | 213 | sub_api_initialized = 1; |
215 | return; | ||
216 | } | 214 | } |
217 | 215 | ||
218 | struct se_session *transport_init_session(void) | 216 | struct se_session *transport_init_session(void) |