aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_fsf.c
diff options
context:
space:
mode:
authorAndreas Herrmann <aherrman@de.ibm.com>2006-05-22 12:18:19 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-05-28 12:43:33 -0400
commit06506d00ec1a0d7d3b1dff59185af355ce29ac0a (patch)
treefef406818d1bccd745913ece2df0dbcee16ec74a /drivers/s390/scsi/zfcp_fsf.c
parentec4081c6ba4fba6a8bc12a0e93db8817ba63ce47 (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_fsf.c')
-rw-r--r--drivers/s390/scsi/zfcp_fsf.c62
1 files changed, 20 insertions, 42 deletions
diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c
index 4475e412066c..83b68e3043c8 100644
--- a/drivers/s390/scsi/zfcp_fsf.c
+++ b/drivers/s390/scsi/zfcp_fsf.c
@@ -1416,7 +1416,8 @@ zfcp_fsf_send_ct(struct zfcp_send_ct *ct, mempool_t *pool,
1416 1416
1417 /* settings in QTCB */ 1417 /* settings in QTCB */
1418 fsf_req->qtcb->header.port_handle = port->handle; 1418 fsf_req->qtcb->header.port_handle = port->handle;
1419 fsf_req->qtcb->bottom.support.service_class = adapter->fc_service_class; 1419 fsf_req->qtcb->bottom.support.service_class =
1420 ZFCP_FC_SERVICE_CLASS_DEFAULT;
1420 fsf_req->qtcb->bottom.support.timeout = ct->timeout; 1421 fsf_req->qtcb->bottom.support.timeout = ct->timeout;
1421 fsf_req->data = (unsigned long) ct; 1422 fsf_req->data = (unsigned long) ct;
1422 1423
@@ -1485,18 +1486,10 @@ zfcp_fsf_send_ct_handler(struct zfcp_fsf_req *fsf_req)
1485 break; 1486 break;
1486 1487
1487 case FSF_SERVICE_CLASS_NOT_SUPPORTED: 1488 case FSF_SERVICE_CLASS_NOT_SUPPORTED:
1488 if (adapter->fc_service_class <= 3) { 1489 ZFCP_LOG_INFO("error: adapter %s does not support fc "
1489 ZFCP_LOG_INFO("error: adapter %s does not support fc " 1490 "class %d.\n",
1490 "class %d.\n", 1491 zfcp_get_busid_by_port(port),
1491 zfcp_get_busid_by_port(port), 1492 ZFCP_FC_SERVICE_CLASS_DEFAULT);
1492 adapter->fc_service_class);
1493 } else {
1494 ZFCP_LOG_INFO("bug: The fibre channel class at the "
1495 "adapter %s is invalid. "
1496 "(debug info %d)\n",
1497 zfcp_get_busid_by_port(port),
1498 adapter->fc_service_class);
1499 }
1500 /* stop operation for this adapter */ 1493 /* stop operation for this adapter */
1501 debug_text_exception(adapter->erp_dbf, 0, "fsf_s_class_nsup"); 1494 debug_text_exception(adapter->erp_dbf, 0, "fsf_s_class_nsup");
1502 zfcp_erp_adapter_shutdown(adapter, 0); 1495 zfcp_erp_adapter_shutdown(adapter, 0);
@@ -1719,7 +1712,8 @@ zfcp_fsf_send_els(struct zfcp_send_els *els)
1719 1712
1720 /* settings in QTCB */ 1713 /* settings in QTCB */
1721 fsf_req->qtcb->bottom.support.d_id = d_id; 1714 fsf_req->qtcb->bottom.support.d_id = d_id;
1722 fsf_req->qtcb->bottom.support.service_class = adapter->fc_service_class; 1715 fsf_req->qtcb->bottom.support.service_class =
1716 ZFCP_FC_SERVICE_CLASS_DEFAULT;
1723 fsf_req->qtcb->bottom.support.timeout = ZFCP_ELS_TIMEOUT; 1717 fsf_req->qtcb->bottom.support.timeout = ZFCP_ELS_TIMEOUT;
1724 fsf_req->data = (unsigned long) els; 1718 fsf_req->data = (unsigned long) els;
1725 1719
@@ -1789,18 +1783,10 @@ static int zfcp_fsf_send_els_handler(struct zfcp_fsf_req *fsf_req)
1789 break; 1783 break;
1790 1784
1791 case FSF_SERVICE_CLASS_NOT_SUPPORTED: 1785 case FSF_SERVICE_CLASS_NOT_SUPPORTED:
1792 if (adapter->fc_service_class <= 3) { 1786 ZFCP_LOG_INFO("error: adapter %s does not support fc "
1793 ZFCP_LOG_INFO("error: adapter %s does " 1787 "class %d.\n",
1794 "not support fibrechannel class %d.\n", 1788 zfcp_get_busid_by_adapter(adapter),
1795 zfcp_get_busid_by_adapter(adapter), 1789 ZFCP_FC_SERVICE_CLASS_DEFAULT);
1796 adapter->fc_service_class);
1797 } else {
1798 ZFCP_LOG_INFO("bug: The fibrechannel class at "
1799 "adapter %s is invalid. "
1800 "(debug info %d)\n",
1801 zfcp_get_busid_by_adapter(adapter),
1802 adapter->fc_service_class);
1803 }
1804 /* stop operation for this adapter */ 1790 /* stop operation for this adapter */
1805 debug_text_exception(adapter->erp_dbf, 0, "fsf_s_class_nsup"); 1791 debug_text_exception(adapter->erp_dbf, 0, "fsf_s_class_nsup");
1806 zfcp_erp_adapter_shutdown(adapter, 0); 1792 zfcp_erp_adapter_shutdown(adapter, 0);
@@ -2974,8 +2960,8 @@ zfcp_fsf_open_unit(struct zfcp_erp_action *erp_action)
2974 erp_action->fsf_req->qtcb->bottom.support.fcp_lun = 2960 erp_action->fsf_req->qtcb->bottom.support.fcp_lun =
2975 erp_action->unit->fcp_lun; 2961 erp_action->unit->fcp_lun;
2976 if (!(erp_action->adapter->connection_features & FSF_FEATURE_NPIV_MODE)) 2962 if (!(erp_action->adapter->connection_features & FSF_FEATURE_NPIV_MODE))
2977 erp_action->fsf_req->qtcb->bottom.support.option = 2963 erp_action->fsf_req->qtcb->bottom.support.option =
2978 FSF_OPEN_LUN_SUPPRESS_BOXING; 2964 FSF_OPEN_LUN_SUPPRESS_BOXING;
2979 atomic_set_mask(ZFCP_STATUS_COMMON_OPENING, &erp_action->unit->status); 2965 atomic_set_mask(ZFCP_STATUS_COMMON_OPENING, &erp_action->unit->status);
2980 erp_action->fsf_req->data = (unsigned long) erp_action->unit; 2966 erp_action->fsf_req->data = (unsigned long) erp_action->unit;
2981 erp_action->fsf_req->erp_action = erp_action; 2967 erp_action->fsf_req->erp_action = erp_action;
@@ -3550,7 +3536,7 @@ zfcp_fsf_send_fcp_command_task(struct zfcp_adapter *adapter,
3550 } 3536 }
3551 3537
3552 /* set FC service class in QTCB (3 per default) */ 3538 /* set FC service class in QTCB (3 per default) */
3553 fsf_req->qtcb->bottom.io.service_class = adapter->fc_service_class; 3539 fsf_req->qtcb->bottom.io.service_class = ZFCP_FC_SERVICE_CLASS_DEFAULT;
3554 3540
3555 /* set FCP_LUN in FCP_CMND IU in QTCB */ 3541 /* set FCP_LUN in FCP_CMND IU in QTCB */
3556 fcp_cmnd_iu->fcp_lun = unit->fcp_lun; 3542 fcp_cmnd_iu->fcp_lun = unit->fcp_lun;
@@ -3689,7 +3675,7 @@ zfcp_fsf_send_fcp_command_task_management(struct zfcp_adapter *adapter,
3689 fsf_req->qtcb->header.lun_handle = unit->handle; 3675 fsf_req->qtcb->header.lun_handle = unit->handle;
3690 fsf_req->qtcb->header.port_handle = unit->port->handle; 3676 fsf_req->qtcb->header.port_handle = unit->port->handle;
3691 fsf_req->qtcb->bottom.io.data_direction = FSF_DATADIR_CMND; 3677 fsf_req->qtcb->bottom.io.data_direction = FSF_DATADIR_CMND;
3692 fsf_req->qtcb->bottom.io.service_class = adapter->fc_service_class; 3678 fsf_req->qtcb->bottom.io.service_class = ZFCP_FC_SERVICE_CLASS_DEFAULT;
3693 fsf_req->qtcb->bottom.io.fcp_cmnd_length = 3679 fsf_req->qtcb->bottom.io.fcp_cmnd_length =
3694 sizeof (struct fcp_cmnd_iu) + sizeof (fcp_dl_t); 3680 sizeof (struct fcp_cmnd_iu) + sizeof (fcp_dl_t);
3695 3681
@@ -3812,18 +3798,10 @@ zfcp_fsf_send_fcp_command_handler(struct zfcp_fsf_req *fsf_req)
3812 break; 3798 break;
3813 3799
3814 case FSF_SERVICE_CLASS_NOT_SUPPORTED: 3800 case FSF_SERVICE_CLASS_NOT_SUPPORTED:
3815 if (fsf_req->adapter->fc_service_class <= 3) { 3801 ZFCP_LOG_INFO("error: adapter %s does not support fc "
3816 ZFCP_LOG_NORMAL("error: The adapter %s does " 3802 "class %d.\n",
3817 "not support fibrechannel class %d.\n", 3803 zfcp_get_busid_by_unit(unit),
3818 zfcp_get_busid_by_unit(unit), 3804 ZFCP_FC_SERVICE_CLASS_DEFAULT);
3819 fsf_req->adapter->fc_service_class);
3820 } else {
3821 ZFCP_LOG_NORMAL("bug: The fibrechannel class at "
3822 "adapter %s is invalid. "
3823 "(debug info %d)\n",
3824 zfcp_get_busid_by_unit(unit),
3825 fsf_req->adapter->fc_service_class);
3826 }
3827 /* stop operation for this adapter */ 3805 /* stop operation for this adapter */
3828 debug_text_exception(fsf_req->adapter->erp_dbf, 0, 3806 debug_text_exception(fsf_req->adapter->erp_dbf, 0,
3829 "fsf_s_class_nsup"); 3807 "fsf_s_class_nsup");