Re: [PATCH 28/39] megaraid_sas: Remove unused pd_index from megasas_build_ld_nonrw_fusion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/06/2017 11:00 AM, Shivasharan S wrote:
> Signed-off-by: Kashyap Desai <kashyap.desai@xxxxxxxxxxxx>
> Signed-off-by: Shivasharan S <shivasharan.srikanteshwara@xxxxxxxxxxxx>
> ---
>  drivers/scsi/megaraid/megaraid_sas_fusion.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c
> index e74cbe6d..7f53505 100644
> --- a/drivers/scsi/megaraid/megaraid_sas_fusion.c
> +++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c
> @@ -2477,7 +2477,7 @@ static void megasas_build_ld_nonrw_fusion(struct megasas_instance *instance,
>  {
>  	u32 device_id;
>  	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 fusion_context *fusion = instance->ctrl_context;
>  	u8                          span, physArm;
> @@ -2489,7 +2489,6 @@ static void megasas_build_ld_nonrw_fusion(struct megasas_instance *instance,
>  
>  	io_request = cmd->io_request;
>  	device_id = MEGASAS_DEV_INDEX(scmd);
> -	pd_index = MEGASAS_PD_INDEX(scmd);
>  	local_map_ptr = fusion->ld_drv_map[(instance->map_id & 1)];
>  	io_request->DataLength = cpu_to_le32(scsi_bufflen(scmd));
>  	/* get RAID_Context pointer */
> 
Reviewed-by: Hannes Reinecke <hare@xxxxxxxx>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		               zSeries & Storage
hare@xxxxxxxx			               +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux