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/loopback | |
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/loopback')
-rw-r--r-- | drivers/target/loopback/tcm_loop.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c index 026dffa0ed5a..22f4fe77237b 100644 --- a/drivers/target/loopback/tcm_loop.c +++ b/drivers/target/loopback/tcm_loop.c | |||
@@ -1312,7 +1312,6 @@ static struct configfs_attribute *tcm_loop_wwn_attrs[] = { | |||
1312 | static int tcm_loop_register_configfs(void) | 1312 | static int tcm_loop_register_configfs(void) |
1313 | { | 1313 | { |
1314 | struct target_fabric_configfs *fabric; | 1314 | struct target_fabric_configfs *fabric; |
1315 | struct config_group *tf_cg; | ||
1316 | int ret; | 1315 | int ret; |
1317 | /* | 1316 | /* |
1318 | * Set the TCM Loop HBA counter to zero | 1317 | * Set the TCM Loop HBA counter to zero |
@@ -1379,7 +1378,6 @@ static int tcm_loop_register_configfs(void) | |||
1379 | fabric->tf_ops.set_fabric_sense_len = &tcm_loop_set_fabric_sense_len; | 1378 | fabric->tf_ops.set_fabric_sense_len = &tcm_loop_set_fabric_sense_len; |
1380 | fabric->tf_ops.get_fabric_sense_len = &tcm_loop_get_fabric_sense_len; | 1379 | fabric->tf_ops.get_fabric_sense_len = &tcm_loop_get_fabric_sense_len; |
1381 | 1380 | ||
1382 | tf_cg = &fabric->tf_group; | ||
1383 | /* | 1381 | /* |
1384 | * Setup function pointers for generic logic in target_core_fabric_configfs.c | 1382 | * Setup function pointers for generic logic in target_core_fabric_configfs.c |
1385 | */ | 1383 | */ |