2017-10-31 17:37:58

by Sumit Saxena

[permalink] [raw]
Subject: RE: [PATCH 1/2] scsi: megaraid: Remove redundant code in megasas_alloc_cmds

-----Original Message-----
From: Yisheng Xie [mailto:[email protected]]
Sent: Wednesday, October 25, 2017 3:27 PM
To: [email protected]; [email protected];
[email protected]; [email protected];
[email protected]
Cc: [email protected]; [email protected];
[email protected]; 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 <[email protected]>
---
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 <[email protected]>

--
1.7.12.4

From 1582223621104278841@xxx Wed Oct 25 10:07:10 +0000 2017
X-GM-THRID: 1582223621104278841
X-Gmail-Labels: Inbox,Category Forums