[SCSI] qla2xxx: Remove unused and obsolete #define's.
authorAndrew Vasquez <andrew.vasquez@qlogic.com>
Thu, 3 Apr 2008 20:13:15 +0000 (13:13 -0700)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 7 Apr 2008 17:19:13 +0000 (12:19 -0500)
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/qla2xxx/qla_gbl.h
drivers/scsi/qla2xxx/qla_mbx.c
drivers/scsi/qla2xxx/qla_os.c
drivers/scsi/qla2xxx/qla_settings.h

index 70af95070aedfeb53ccbf9ea3cca01856f39c5c1..97625d49a43c213560cfde0be541fab64121b73c 100644 (file)
@@ -151,10 +151,8 @@ qla2x00_issue_iocb(scsi_qla_host_t *, void *, dma_addr_t, size_t);
 extern int
 qla2x00_abort_command(scsi_qla_host_t *, srb_t *);
 
-#if USE_ABORT_TGT
 extern int
 qla2x00_abort_target(fc_port_t *);
-#endif
 
 extern int
 qla2x00_get_adapter_id(scsi_qla_host_t *, uint16_t *, uint8_t *, uint8_t *,
index 9d92c02fa3d415486cf71771a88f1ea0011b722c..898847e4b363312ed70374dba298b6e14287bc03 100644 (file)
@@ -776,7 +776,6 @@ qla2x00_abort_command(scsi_qla_host_t *ha, srb_t *sp)
        return rval;
 }
 
-#if USE_ABORT_TGT
 /*
  * qla2x00_abort_target
  *     Issue abort target mailbox command.
@@ -834,7 +833,6 @@ qla2x00_abort_target(fc_port_t *fcport)
 
        return rval;
 }
-#endif
 
 /*
  * qla2x00_get_adapter_id
index 2d28937d30c71d0f12f173365008ca059873222c..661a1596679d5f19abd89212688b8b9d5c50cbdd 100644 (file)
@@ -816,15 +816,6 @@ qla2xxx_eh_device_reset(struct scsi_cmnd *cmd)
        if (qla2x00_wait_for_loop_ready(ha) == QLA_SUCCESS) {
                if (qla2x00_device_reset(ha, fcport) == 0)
                        ret = SUCCESS;
-
-#if defined(LOGOUT_AFTER_DEVICE_RESET)
-               if (ret == SUCCESS) {
-                       if (fcport->flags & FC_FABRIC_DEVICE) {
-                               ha->isp_ops->fabric_logout(ha, fcport->loop_id);
-                               qla2x00_mark_device_lost(ha, fcport, 0, 0);
-                       }
-               }
-#endif
        } else {
                DEBUG2(printk(KERN_INFO
                    "%s failed: loop not ready\n",__func__));
index 44069489225b0dcd2b801c2521cd941e0a047183..2801c2664b40a6186b9e0ba058a02bd3a9eef353 100644 (file)
@@ -4,23 +4,9 @@
  *
  * See LICENSE.qla2xxx for copyright and licensing details.
  */
-/*
- * Compile time Options:
- *     0 - Disable and 1 - Enable
- */
-#define DEBUG_QLA2100          0       /* For Debug of qla2x00 */
-
-#define USE_ABORT_TGT          1       /* Use Abort Target mbx cmd */
-
 #define MAX_RETRIES_OF_ISP_ABORT       5
 
 /* Max time to wait for the loop to be in LOOP_READY state */
 #define MAX_LOOP_TIMEOUT       (60 * 5)
 
-/*
- * Some vendor subsystems do not recover properly after a device reset.  Define
- * the following to force a logout after a successful device reset.
- */
-#undef LOGOUT_AFTER_DEVICE_RESET
-
 #include "qla_version.h"
This page took 0.034875 seconds and 5 git commands to generate.