]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/target/target_core_hba.c
target: kill struct se_subsystem_dev
[karo-tx-linux.git] / drivers / target / target_core_hba.c
index 3dd1bd4b6f71c712eb10770ebf976a9a7fa67cfc..048b7b4b9102774313e8150950f104e6bdbead2a 100644 (file)
@@ -113,7 +113,6 @@ core_alloc_hba(const char *plugin_name, u32 plugin_dep_id, u32 hba_flags)
                return ERR_PTR(-ENOMEM);
        }
 
-       INIT_LIST_HEAD(&hba->hba_dev_list);
        spin_lock_init(&hba->device_lock);
        mutex_init(&hba->hba_access_mutex);
 
@@ -152,8 +151,7 @@ out_free_hba:
 int
 core_delete_hba(struct se_hba *hba)
 {
-       if (!list_empty(&hba->hba_dev_list))
-               dump_stack();
+       WARN_ON(hba->dev_count);
 
        hba->transport->detach_hba(hba);