aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mpt3sas
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2012-12-11 15:56:51 -0500
committerJames Bottomley <JBottomley@Parallels.com>2013-01-28 22:15:35 -0500
commit25ef16d0710e1d2476bb06232836650ea42763a5 (patch)
tree483c7543d2b7a9dc6370f66f8c293baff9c8dd9f /drivers/scsi/mpt3sas
parent3735660d7be66e2e508ff393f69214f2b4113ab2 (diff)
[SCSI] mpt3sas: remove unused variables
The variable 'chain_flags' and 'phy_number' are initialized but never used otherwise, So remove those unused variables. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Sreekanth Reddy <Sreekanth.Reddy@lsi.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/mpt3sas')
-rw-r--r--drivers/scsi/mpt3sas/mpt3sas_base.c4
-rw-r--r--drivers/scsi/mpt3sas/mpt3sas_scsih.c2
2 files changed, 1 insertions, 5 deletions
diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c b/drivers/scsi/mpt3sas/mpt3sas_base.c
index d5e8463edeeb..18360032a520 100644
--- a/drivers/scsi/mpt3sas/mpt3sas_base.c
+++ b/drivers/scsi/mpt3sas/mpt3sas_base.c
@@ -1309,7 +1309,6 @@ _base_build_sg_scmd_ieee(struct MPT3SAS_ADAPTER *ioc,
1309 void *sg_local, *chain; 1309 void *sg_local, *chain;
1310 u32 chain_offset; 1310 u32 chain_offset;
1311 u32 chain_length; 1311 u32 chain_length;
1312 u32 chain_flags;
1313 int sges_left; 1312 int sges_left;
1314 u32 sges_in_segment; 1313 u32 sges_in_segment;
1315 u8 simple_sgl_flags; 1314 u8 simple_sgl_flags;
@@ -1355,8 +1354,7 @@ _base_build_sg_scmd_ieee(struct MPT3SAS_ADAPTER *ioc,
1355 sges_in_segment--; 1354 sges_in_segment--;
1356 } 1355 }
1357 1356
1358 /* initializing the chain flags and pointers */ 1357 /* initializing the pointers */
1359 chain_flags = MPI2_SGE_FLAGS_CHAIN_ELEMENT << MPI2_SGE_FLAGS_SHIFT;
1360 chain_req = _base_get_chain_buffer_tracker(ioc, smid); 1358 chain_req = _base_get_chain_buffer_tracker(ioc, smid);
1361 if (!chain_req) 1359 if (!chain_req)
1362 return -1; 1360 return -1;
diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c b/drivers/scsi/mpt3sas/mpt3sas_scsih.c
index eb23846dc529..dcbf7c880cb2 100644
--- a/drivers/scsi/mpt3sas/mpt3sas_scsih.c
+++ b/drivers/scsi/mpt3sas/mpt3sas_scsih.c
@@ -2754,13 +2754,11 @@ _scsih_block_io_to_children_attached_directly(struct MPT3SAS_ADAPTER *ioc,
2754 int i; 2754 int i;
2755 u16 handle; 2755 u16 handle;
2756 u16 reason_code; 2756 u16 reason_code;
2757 u8 phy_number;
2758 2757
2759 for (i = 0; i < event_data->NumEntries; i++) { 2758 for (i = 0; i < event_data->NumEntries; i++) {
2760 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle); 2759 handle = le16_to_cpu(event_data->PHY[i].AttachedDevHandle);
2761 if (!handle) 2760 if (!handle)
2762 continue; 2761 continue;
2763 phy_number = event_data->StartPhyNum + i;
2764 reason_code = event_data->PHY[i].PhyStatus & 2762 reason_code = event_data->PHY[i].PhyStatus &
2765 MPI2_EVENT_SAS_TOPO_RC_MASK; 2763 MPI2_EVENT_SAS_TOPO_RC_MASK;
2766 if (reason_code == MPI2_EVENT_SAS_TOPO_RC_DELAY_NOT_RESPONDING) 2764 if (reason_code == MPI2_EVENT_SAS_TOPO_RC_DELAY_NOT_RESPONDING)