diff options
author | Andreas Herrmann <aherrman@de.ibm.com> | 2006-05-22 12:18:19 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-05-28 12:43:33 -0400 |
commit | 06506d00ec1a0d7d3b1dff59185af355ce29ac0a (patch) | |
tree | fef406818d1bccd745913ece2df0dbcee16ec74a /drivers/s390/scsi/zfcp_scsi.c | |
parent | ec4081c6ba4fba6a8bc12a0e93db8817ba63ce47 (diff) |
[SCSI] zfcp: (cleanup) removed superfluous macros, struct members, typedefs
Removed some macros, struct members and typedefs which were
unused or not necessary.
Signed-off-by: Andreas Herrmann <aherrman@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_scsi.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_scsi.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/drivers/s390/scsi/zfcp_scsi.c b/drivers/s390/scsi/zfcp_scsi.c index 3a180d80c3cb..f198814196a4 100644 --- a/drivers/s390/scsi/zfcp_scsi.c +++ b/drivers/s390/scsi/zfcp_scsi.c | |||
@@ -35,8 +35,8 @@ static int zfcp_scsi_eh_host_reset_handler(struct scsi_cmnd *); | |||
35 | static int zfcp_task_management_function(struct zfcp_unit *, u8, | 35 | static int zfcp_task_management_function(struct zfcp_unit *, u8, |
36 | struct scsi_cmnd *); | 36 | struct scsi_cmnd *); |
37 | 37 | ||
38 | static struct zfcp_unit *zfcp_unit_lookup(struct zfcp_adapter *, int, scsi_id_t, | 38 | static struct zfcp_unit *zfcp_unit_lookup(struct zfcp_adapter *, int, |
39 | scsi_lun_t); | 39 | unsigned int, unsigned int); |
40 | 40 | ||
41 | static struct device_attribute *zfcp_sysfs_sdev_attrs[]; | 41 | static struct device_attribute *zfcp_sysfs_sdev_attrs[]; |
42 | 42 | ||
@@ -349,8 +349,8 @@ zfcp_scsi_queuecommand(struct scsi_cmnd *scpnt, | |||
349 | } | 349 | } |
350 | 350 | ||
351 | static struct zfcp_unit * | 351 | static struct zfcp_unit * |
352 | zfcp_unit_lookup(struct zfcp_adapter *adapter, int channel, scsi_id_t id, | 352 | zfcp_unit_lookup(struct zfcp_adapter *adapter, int channel, unsigned int id, |
353 | scsi_lun_t lun) | 353 | unsigned int lun) |
354 | { | 354 | { |
355 | struct zfcp_port *port; | 355 | struct zfcp_port *port; |
356 | struct zfcp_unit *unit, *retval = NULL; | 356 | struct zfcp_unit *unit, *retval = NULL; |
@@ -608,10 +608,6 @@ zfcp_adapter_scsi_register(struct zfcp_adapter *adapter) | |||
608 | adapter->scsi_host->unique_id = unique_id++; /* FIXME */ | 608 | adapter->scsi_host->unique_id = unique_id++; /* FIXME */ |
609 | adapter->scsi_host->max_cmd_len = ZFCP_MAX_SCSI_CMND_LENGTH; | 609 | adapter->scsi_host->max_cmd_len = ZFCP_MAX_SCSI_CMND_LENGTH; |
610 | adapter->scsi_host->transportt = zfcp_transport_template; | 610 | adapter->scsi_host->transportt = zfcp_transport_template; |
611 | /* | ||
612 | * Reverse mapping of the host number to avoid race condition | ||
613 | */ | ||
614 | adapter->scsi_host_no = adapter->scsi_host->host_no; | ||
615 | 611 | ||
616 | /* | 612 | /* |
617 | * save a pointer to our own adapter data structure within | 613 | * save a pointer to our own adapter data structure within |
@@ -647,7 +643,6 @@ zfcp_adapter_scsi_unregister(struct zfcp_adapter *adapter) | |||
647 | scsi_remove_host(shost); | 643 | scsi_remove_host(shost); |
648 | scsi_host_put(shost); | 644 | scsi_host_put(shost); |
649 | adapter->scsi_host = NULL; | 645 | adapter->scsi_host = NULL; |
650 | adapter->scsi_host_no = 0; | ||
651 | atomic_clear_mask(ZFCP_STATUS_ADAPTER_REGISTERED, &adapter->status); | 646 | atomic_clear_mask(ZFCP_STATUS_ADAPTER_REGISTERED, &adapter->status); |
652 | 647 | ||
653 | return; | 648 | return; |