Commit 4a0bcf36 authored by Shivasharan S's avatar Shivasharan S Committed by Martin K. Petersen

scsi: megaraid_sas: Remove unused variable target_index

No functional change. Remove set but unused variable in
megasas_set_static_target_properties.
Signed-off-by: default avatarShivasharan S <shivasharan.srikanteshwara@broadcom.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent e5207cf0
...@@ -1930,7 +1930,6 @@ megasas_set_nvme_device_properties(struct scsi_device *sdev, u32 max_io_size) ...@@ -1930,7 +1930,6 @@ megasas_set_nvme_device_properties(struct scsi_device *sdev, u32 max_io_size)
static void megasas_set_static_target_properties(struct scsi_device *sdev, static void megasas_set_static_target_properties(struct scsi_device *sdev,
bool is_target_prop) bool is_target_prop)
{ {
u16 target_index = 0;
u8 interface_type; u8 interface_type;
u32 device_qd = MEGASAS_DEFAULT_CMD_PER_LUN; u32 device_qd = MEGASAS_DEFAULT_CMD_PER_LUN;
u32 max_io_size_kb = MR_DEFAULT_NVME_MDTS_KB; u32 max_io_size_kb = MR_DEFAULT_NVME_MDTS_KB;
...@@ -1947,8 +1946,6 @@ static void megasas_set_static_target_properties(struct scsi_device *sdev, ...@@ -1947,8 +1946,6 @@ static void megasas_set_static_target_properties(struct scsi_device *sdev,
*/ */
blk_queue_rq_timeout(sdev->request_queue, scmd_timeout * HZ); blk_queue_rq_timeout(sdev->request_queue, scmd_timeout * HZ);
target_index = (sdev->channel * MEGASAS_MAX_DEV_PER_CHANNEL) + sdev->id;
switch (interface_type) { switch (interface_type) {
case SAS_PD: case SAS_PD:
device_qd = MEGASAS_SAS_QD; device_qd = MEGASAS_SAS_QD;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment