diff options
Diffstat (limited to 'drivers/ieee1394/sbp2.c')
-rw-r--r-- | drivers/ieee1394/sbp2.c | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/drivers/ieee1394/sbp2.c b/drivers/ieee1394/sbp2.c index c9263771d181..34280c7eb73d 100644 --- a/drivers/ieee1394/sbp2.c +++ b/drivers/ieee1394/sbp2.c | |||
@@ -1288,16 +1288,13 @@ static void sbp2_parse_unit_directory(struct scsi_id_instance_data *scsi_id, | |||
1288 | struct csr1212_keyval *kv; | 1288 | struct csr1212_keyval *kv; |
1289 | struct csr1212_dentry *dentry; | 1289 | struct csr1212_dentry *dentry; |
1290 | u64 management_agent_addr; | 1290 | u64 management_agent_addr; |
1291 | u32 command_set_spec_id, command_set, unit_characteristics, | 1291 | u32 unit_characteristics, firmware_revision; |
1292 | firmware_revision; | ||
1293 | unsigned workarounds; | 1292 | unsigned workarounds; |
1294 | int i; | 1293 | int i; |
1295 | 1294 | ||
1296 | management_agent_addr = 0x0; | 1295 | management_agent_addr = 0; |
1297 | command_set_spec_id = 0x0; | 1296 | unit_characteristics = 0; |
1298 | command_set = 0x0; | 1297 | firmware_revision = 0; |
1299 | unit_characteristics = 0x0; | ||
1300 | firmware_revision = 0x0; | ||
1301 | 1298 | ||
1302 | csr1212_for_each_dir_entry(ud->ne->csr, kv, ud->ud_kv, dentry) { | 1299 | csr1212_for_each_dir_entry(ud->ne->csr, kv, ud->ud_kv, dentry) { |
1303 | switch (kv->key.id) { | 1300 | switch (kv->key.id) { |
@@ -1312,14 +1309,6 @@ static void sbp2_parse_unit_directory(struct scsi_id_instance_data *scsi_id, | |||
1312 | ORB_SET_LUN(kv->value.immediate); | 1309 | ORB_SET_LUN(kv->value.immediate); |
1313 | break; | 1310 | break; |
1314 | 1311 | ||
1315 | case SBP2_COMMAND_SET_SPEC_ID_KEY: | ||
1316 | command_set_spec_id = kv->value.immediate; | ||
1317 | break; | ||
1318 | |||
1319 | case SBP2_COMMAND_SET_KEY: | ||
1320 | command_set = kv->value.immediate; | ||
1321 | break; | ||
1322 | |||
1323 | case SBP2_UNIT_CHARACTERISTICS_KEY: | 1312 | case SBP2_UNIT_CHARACTERISTICS_KEY: |
1324 | /* FIXME: This is ignored so far. | 1313 | /* FIXME: This is ignored so far. |
1325 | * See SBP-2 clause 7.4.8. */ | 1314 | * See SBP-2 clause 7.4.8. */ |
@@ -1380,10 +1369,6 @@ static void sbp2_parse_unit_directory(struct scsi_id_instance_data *scsi_id, | |||
1380 | sbp2_parse_unit_directory(scsi_id, parent_ud); | 1369 | sbp2_parse_unit_directory(scsi_id, parent_ud); |
1381 | } else { | 1370 | } else { |
1382 | scsi_id->management_agent_addr = management_agent_addr; | 1371 | scsi_id->management_agent_addr = management_agent_addr; |
1383 | scsi_id->command_set_spec_id = command_set_spec_id; | ||
1384 | scsi_id->command_set = command_set; | ||
1385 | scsi_id->unit_characteristics = unit_characteristics; | ||
1386 | scsi_id->firmware_revision = firmware_revision; | ||
1387 | scsi_id->workarounds = workarounds; | 1372 | scsi_id->workarounds = workarounds; |
1388 | if (ud->flags & UNIT_DIRECTORY_HAS_LUN) | 1373 | if (ud->flags & UNIT_DIRECTORY_HAS_LUN) |
1389 | scsi_id->lun = ORB_SET_LUN(ud->lun); | 1374 | scsi_id->lun = ORB_SET_LUN(ud->lun); |