Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6e8905f4a028bd07190fa5b2f90b5a35868c84d8
Commit:     6e8905f4a028bd07190fa5b2f90b5a35868c84d8
Parent:     512193588db0d38ae6aa78802bb15f3ef3104a00
Author:     Matthew Wilcox <[EMAIL PROTECTED]>
AuthorDate: Tue Oct 2 21:55:23 2007 -0400
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Fri Oct 12 14:52:55 2007 -0400

    [SCSI] advansys: Remove array of scsi targets
    
    The driver was saving a scsi_device for each target, but wasn't doing
    anything useful with them.  Just delete the array.
    
    Signed-off-by: Matthew Wilcox <[EMAIL PROTECTED]>
    Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
---
 drivers/scsi/advansys.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c
index 4f047cc..737c0e4 100644
--- a/drivers/scsi/advansys.c
+++ b/drivers/scsi/advansys.c
@@ -2514,7 +2514,6 @@ typedef struct asc_board {
        } dvc_cfg;
        ushort asc_n_io_port;   /* Number I/O ports. */
        ADV_SCSI_BIT_ID_TYPE init_tidmask;      /* Target init./valid mask */
-       struct scsi_device *device[ADV_MAX_TID + 1];    /* Mid-Level Scsi 
Device */
        ushort reqcnt[ADV_MAX_TID + 1]; /* Starvation request count */
        ADV_SCSI_BIT_ID_TYPE queue_full;        /* Queue full mask */
        ushort queue_full_cnt[ADV_MAX_TID + 1]; /* Queue full count */
@@ -10183,13 +10182,6 @@ static int advansys_slave_configure(struct scsi_device 
*sdev)
        asc_board_t *boardp = ASC_BOARDP(sdev->host);
        boardp->flags |= ASC_SELECT_QUEUE_DEPTHS;
 
-       /*
-        * Save a pointer to the sdev and set its initial/maximum
-        * queue depth.  Only save the pointer for a lun0 dev though.
-        */
-       if (sdev->lun == 0)
-               boardp->device[sdev->id] = sdev;
-
        if (ASC_NARROW_BOARD(boardp))
                advansys_narrow_slave_configure(sdev,
                                                &boardp->dvc_var.asc_dvc_var);
@@ -11343,14 +11335,12 @@ static int asc_execute_scsi_cmnd(struct scsi_cmnd 
*scp)
        ASC_DVC_VAR *asc_dvc_varp;
        ADV_DVC_VAR *adv_dvc_varp;
        ADV_SCSI_REQ_Q *adv_scsiqp;
-       struct scsi_device *device;
        int ret;
 
        ASC_DBG2(1, "asc_execute_scsi_cmnd: scp 0x%lx, done 0x%lx\n",
                 (ulong)scp, (ulong)scp->scsi_done);
 
        boardp = ASC_BOARDP(scp->device->host);
-       device = boardp->device[scp->device->id];
 
        if (ASC_NARROW_BOARD(boardp)) {
                /*
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to