Skip to content

Commit

Permalink
scsi: megaraid: Remove redundant code in megasas_alloc_cmds
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yisheng Xie authored and Martin K. Petersen committed Nov 3, 2017
1 parent ad95028 commit ca6958b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/scsi/megaraid/megaraid_sas_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand Down

0 comments on commit ca6958b

Please sign in to comment.