summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorYisheng Xie <xieyisheng1@huawei.com>2017-10-25 11:57:07 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2017-11-03 16:25:41 +0100
commitca6958b4da8b7fd9f6ac3bf94def9cfb8a1d6c25 (patch)
treefcd814dcb13be3492029b598447f0d984061b209 /drivers
parentscsi: scsi_error: DID_SOFT_ERROR comment clean up (diff)
downloadlinux-ca6958b4da8b7fd9f6ac3bf94def9cfb8a1d6c25.tar.xz
linux-ca6958b4da8b7fd9f6ac3bf94def9cfb8a1d6c25.zip
scsi: megaraid: Remove redundant code in megasas_alloc_cmds
megasas_alloc_cmds is to alloc cmd_list of instance instead of fusion, and fusion is useless in this function. Just remove it. Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com> Acked-by: Sumit Saxena <sumit.saxena@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/megaraid/megaraid_sas_base.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c
index f14d7cb05280..8c19debbd560 100644
--- a/drivers/scsi/megaraid/megaraid_sas_base.c
+++ b/drivers/scsi/megaraid/megaraid_sas_base.c
@@ -4079,9 +4079,7 @@ int megasas_alloc_cmds(struct megasas_instance *instance)
int j;
u16 max_cmd;
struct megasas_cmd *cmd;
- struct fusion_context *fusion;
- fusion = instance->ctrl_context;
max_cmd = instance->max_mfi_cmds;
/*