diff options
author | Jörn Engel <joern@logfs.org> | 2012-03-15 15:06:58 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-03-15 22:16:09 -0400 |
commit | 281689051a628e5341ce1efcfafde9d60f2f6fbb (patch) | |
tree | 15809410fe5d1c8540622f5bd7c726517b22ddd3 /drivers/target/target_core_configfs.c | |
parent | f2083241f23722207676025abbb45a301d412e69 (diff) |
target: remove obvious warnings
Get rid of a bunch of write-only variables. In a number of cases I
suspect actual bugs to be present, so I left all of those for a second
look.
(nab: fix lio-core patch fuzz)
Signed-off-by: Joern Engel <joern@logfs.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_configfs.c')
-rw-r--r-- | drivers/target/target_core_configfs.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/target/target_core_configfs.c b/drivers/target/target_core_configfs.c index 72bd7f5d6795..cbb66537d230 100644 --- a/drivers/target/target_core_configfs.c +++ b/drivers/target/target_core_configfs.c | |||
@@ -2853,7 +2853,6 @@ static void target_core_drop_subdev( | |||
2853 | struct se_subsystem_dev *se_dev = container_of(to_config_group(item), | 2853 | struct se_subsystem_dev *se_dev = container_of(to_config_group(item), |
2854 | struct se_subsystem_dev, se_dev_group); | 2854 | struct se_subsystem_dev, se_dev_group); |
2855 | struct se_hba *hba; | 2855 | struct se_hba *hba; |
2856 | struct se_subsystem_api *t; | ||
2857 | struct config_item *df_item; | 2856 | struct config_item *df_item; |
2858 | struct config_group *dev_cg, *tg_pt_gp_cg, *dev_stat_grp; | 2857 | struct config_group *dev_cg, *tg_pt_gp_cg, *dev_stat_grp; |
2859 | int i; | 2858 | int i; |
@@ -2861,7 +2860,6 @@ static void target_core_drop_subdev( | |||
2861 | hba = item_to_hba(&se_dev->se_dev_hba->hba_group.cg_item); | 2860 | hba = item_to_hba(&se_dev->se_dev_hba->hba_group.cg_item); |
2862 | 2861 | ||
2863 | mutex_lock(&hba->hba_access_mutex); | 2862 | mutex_lock(&hba->hba_access_mutex); |
2864 | t = hba->transport; | ||
2865 | 2863 | ||
2866 | dev_stat_grp = &se_dev->dev_stat_grps.stat_group; | 2864 | dev_stat_grp = &se_dev->dev_stat_grps.stat_group; |
2867 | for (i = 0; dev_stat_grp->default_groups[i]; i++) { | 2865 | for (i = 0; dev_stat_grp->default_groups[i]; i++) { |