mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
megaraid_sas: Code cleanup-use local variable drv_ops inside megasas_ioc_init_fusion
Signed-off-by: Sumit Saxena <sumit.saxena@avagotech.com> Signed-off-by: Kashyap Desai <kashyap.desai@avagotech.com> Reviewed-by: Martin Petersen <martin.petersen@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
3761cb4cf6
commit
4dbbe3cec4
1 changed files with 10 additions and 10 deletions
|
@ -605,6 +605,7 @@ megasas_ioc_init_fusion(struct megasas_instance *instance)
|
||||||
int i;
|
int i;
|
||||||
struct megasas_header *frame_hdr;
|
struct megasas_header *frame_hdr;
|
||||||
const char *sys_info;
|
const char *sys_info;
|
||||||
|
MFI_CAPABILITIES *drv_ops;
|
||||||
|
|
||||||
fusion = instance->ctrl_context;
|
fusion = instance->ctrl_context;
|
||||||
|
|
||||||
|
@ -652,20 +653,19 @@ megasas_ioc_init_fusion(struct megasas_instance *instance)
|
||||||
init_frame->cmd = MFI_CMD_INIT;
|
init_frame->cmd = MFI_CMD_INIT;
|
||||||
init_frame->cmd_status = 0xFF;
|
init_frame->cmd_status = 0xFF;
|
||||||
|
|
||||||
|
drv_ops = (MFI_CAPABILITIES *) &(init_frame->driver_operations);
|
||||||
|
|
||||||
/* driver support Extended MSIX */
|
/* driver support Extended MSIX */
|
||||||
if ((instance->pdev->device == PCI_DEVICE_ID_LSI_INVADER) ||
|
if ((instance->pdev->device == PCI_DEVICE_ID_LSI_INVADER) ||
|
||||||
(instance->pdev->device == PCI_DEVICE_ID_LSI_FURY))
|
(instance->pdev->device == PCI_DEVICE_ID_LSI_FURY))
|
||||||
init_frame->driver_operations.
|
drv_ops->mfi_capabilities.support_additional_msix = 1;
|
||||||
mfi_capabilities.support_additional_msix = 1;
|
|
||||||
/* driver supports HA / Remote LUN over Fast Path interface */
|
/* driver supports HA / Remote LUN over Fast Path interface */
|
||||||
init_frame->driver_operations.mfi_capabilities.support_fp_remote_lun
|
drv_ops->mfi_capabilities.support_fp_remote_lun = 1;
|
||||||
= 1;
|
|
||||||
init_frame->driver_operations.mfi_capabilities.support_max_255lds
|
drv_ops->mfi_capabilities.support_max_255lds = 1;
|
||||||
= 1;
|
drv_ops->mfi_capabilities.support_ndrive_r1_lb = 1;
|
||||||
init_frame->driver_operations.mfi_capabilities.support_ndrive_r1_lb
|
drv_ops->mfi_capabilities.security_protocol_cmds_fw = 1;
|
||||||
= 1;
|
|
||||||
init_frame->driver_operations.mfi_capabilities.security_protocol_cmds_fw
|
|
||||||
= 1;
|
|
||||||
/* Convert capability to LE32 */
|
/* Convert capability to LE32 */
|
||||||
cpu_to_le32s((u32 *)&init_frame->driver_operations.mfi_capabilities);
|
cpu_to_le32s((u32 *)&init_frame->driver_operations.mfi_capabilities);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue