mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
scsi: megaraid_sas: Remove unused pd_index from megasas_build_ld_nonrw_fusion
Signed-off-by: Kashyap Desai <kashyap.desai@broadcom.com> Signed-off-by: Shivasharan S <shivasharan.srikanteshwara@broadcom.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Tomas Henzl <thenzl@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
21c34006dc
commit
25fb13dd2d
1 changed files with 1 additions and 2 deletions
|
@ -2480,7 +2480,7 @@ static void megasas_build_ld_nonrw_fusion(struct megasas_instance *instance,
|
||||||
{
|
{
|
||||||
u32 device_id;
|
u32 device_id;
|
||||||
struct MPI2_RAID_SCSI_IO_REQUEST *io_request;
|
struct MPI2_RAID_SCSI_IO_REQUEST *io_request;
|
||||||
u16 pd_index = 0, ld;
|
u16 ld;
|
||||||
struct MR_DRV_RAID_MAP_ALL *local_map_ptr;
|
struct MR_DRV_RAID_MAP_ALL *local_map_ptr;
|
||||||
struct fusion_context *fusion = instance->ctrl_context;
|
struct fusion_context *fusion = instance->ctrl_context;
|
||||||
u8 span, physArm;
|
u8 span, physArm;
|
||||||
|
@ -2492,7 +2492,6 @@ static void megasas_build_ld_nonrw_fusion(struct megasas_instance *instance,
|
||||||
|
|
||||||
io_request = cmd->io_request;
|
io_request = cmd->io_request;
|
||||||
device_id = MEGASAS_DEV_INDEX(scmd);
|
device_id = MEGASAS_DEV_INDEX(scmd);
|
||||||
pd_index = MEGASAS_PD_INDEX(scmd);
|
|
||||||
local_map_ptr = fusion->ld_drv_map[(instance->map_id & 1)];
|
local_map_ptr = fusion->ld_drv_map[(instance->map_id & 1)];
|
||||||
io_request->DataLength = cpu_to_le32(scsi_bufflen(scmd));
|
io_request->DataLength = cpu_to_le32(scsi_bufflen(scmd));
|
||||||
/* get RAID_Context pointer */
|
/* get RAID_Context pointer */
|
||||||
|
|
Loading…
Reference in a new issue