[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5501933ac4d2773c529357265e4b2c73@mail.gmail.com>
Date: Tue, 31 Oct 2017 23:06:18 +0530
From: Sumit Saxena <sumit.saxena@...adcom.com>
To: Yisheng Xie <xieyisheng1@...wei.com>,
Kashyap Desai <kashyap.desai@...adcom.com>,
Shivasharan Srikanteshwara
<shivasharan.srikanteshwara@...adcom.com>, jejb@...ux.vnet.ibm.com,
martin.petersen@...cle.com
Cc: "PDL,MEGARAIDLINUX" <megaraidlinux.pdl@...adcom.com>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: RE: [PATCH 1/2] scsi: megaraid: Remove redundant code in megasas_alloc_cmds
-----Original Message-----
From: Yisheng Xie [mailto:xieyisheng1@...wei.com]
Sent: Wednesday, October 25, 2017 3:27 PM
To: kashyap.desai@...adcom.com; sumit.saxena@...adcom.com;
shivasharan.srikanteshwara@...adcom.com; jejb@...ux.vnet.ibm.com;
martin.petersen@...cle.com
Cc: megaraidlinux.pdl@...adcom.com; linux-scsi@...r.kernel.org;
linux-kernel@...r.kernel.org; Yisheng Xie
Subject: [PATCH 1/2] 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@...wei.com>
---
drivers/scsi/megaraid/megaraid_sas_base.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c
b/drivers/scsi/megaraid/megaraid_sas_base.c
index e518dad..0640168 100644
--- a/drivers/scsi/megaraid/megaraid_sas_base.c
+++ b/drivers/scsi/megaraid/megaraid_sas_base.c
@@ -4033,9 +4033,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;
/*
Acked-by: Sumit Saxena <sumit.saxena@...adcom.com>
--
1.7.12.4
Powered by blists - more mailing lists