diff options
author | Swen Schillig <swen@vnet.ibm.com> | 2008-07-02 04:56:37 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-07-12 09:22:35 -0400 |
commit | 317e6b6519b5a34263a33f150ed57ad468b26a64 (patch) | |
tree | 074a35c260d567911b009fd70b83940cdd254bbd /drivers/s390/scsi/zfcp_def.h | |
parent | f76af7d7e36373179be7a9e09f6b0aae330549b7 (diff) |
[SCSI] zfcp: Cleanup of code in zfcp_aux.c
Overall cleanup of zfcp_aux.c to simplify code and follow kernel
coding style.
Signed-off-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_def.h')
-rw-r--r-- | drivers/s390/scsi/zfcp_def.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/s390/scsi/zfcp_def.h b/drivers/s390/scsi/zfcp_def.h index 7ac830c39098..d69d280359da 100644 --- a/drivers/s390/scsi/zfcp_def.h +++ b/drivers/s390/scsi/zfcp_def.h | |||
@@ -730,13 +730,6 @@ struct zfcp_data { | |||
730 | struct kmem_cache *gid_pn_cache; | 730 | struct kmem_cache *gid_pn_cache; |
731 | }; | 731 | }; |
732 | 732 | ||
733 | /* number of elements for various memory pools */ | ||
734 | #define ZFCP_POOL_FSF_REQ_ERP_NR 1 | ||
735 | #define ZFCP_POOL_FSF_REQ_SCSI_NR 1 | ||
736 | #define ZFCP_POOL_FSF_REQ_ABORT_NR 1 | ||
737 | #define ZFCP_POOL_STATUS_READ_NR FSF_STATUS_READS_RECOM | ||
738 | #define ZFCP_POOL_DATA_GID_PN_NR 1 | ||
739 | |||
740 | /* struct used by memory pools for fsf_requests */ | 733 | /* struct used by memory pools for fsf_requests */ |
741 | struct zfcp_fsf_req_qtcb { | 734 | struct zfcp_fsf_req_qtcb { |
742 | struct zfcp_fsf_req fsf_req; | 735 | struct zfcp_fsf_req fsf_req; |
@@ -757,12 +750,6 @@ struct zfcp_fsf_req_qtcb { | |||
757 | ((atomic_read(target) & mask) == mask) | 750 | ((atomic_read(target) & mask) == mask) |
758 | #endif | 751 | #endif |
759 | 752 | ||
760 | extern void _zfcp_hex_dump(char *, int); | ||
761 | #define ZFCP_HEX_DUMP(level, addr, count) \ | ||
762 | if (ZFCP_LOG_CHECK(level)) { \ | ||
763 | _zfcp_hex_dump(addr, count); \ | ||
764 | } | ||
765 | |||
766 | #define zfcp_get_busid_by_adapter(adapter) (adapter->ccw_device->dev.bus_id) | 753 | #define zfcp_get_busid_by_adapter(adapter) (adapter->ccw_device->dev.bus_id) |
767 | #define zfcp_get_busid_by_port(port) (zfcp_get_busid_by_adapter(port->adapter)) | 754 | #define zfcp_get_busid_by_port(port) (zfcp_get_busid_by_adapter(port->adapter)) |
768 | #define zfcp_get_busid_by_unit(unit) (zfcp_get_busid_by_port(unit->port)) | 755 | #define zfcp_get_busid_by_unit(unit) (zfcp_get_busid_by_port(unit->port)) |