提交 7a7ae4f1 编写于 作者: S Shivasharan S 提交者: Martin K. Petersen

scsi: megaraid_sas: Change build_mpt_mfi_pass_thru to return void

Code refactoring to build_mpt_mfi_pass_thru to return void.
Signed-off-by: NKashyap Desai <kashyap.desai@broadcom.com>
Signed-off-by: NShivasharan S <shivasharan.srikanteshwara@broadcom.com>
Reviewed-by: NHannes Reinecke <hare@suse.com>
Reviewed-by: NTomas Henzl <thenzl@redhat.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 a6821ca3
...@@ -3229,7 +3229,7 @@ irqreturn_t megasas_isr_fusion(int irq, void *devp) ...@@ -3229,7 +3229,7 @@ irqreturn_t megasas_isr_fusion(int irq, void *devp)
* mfi_cmd: megasas_cmd pointer * mfi_cmd: megasas_cmd pointer
* *
*/ */
u8 void
build_mpt_mfi_pass_thru(struct megasas_instance *instance, build_mpt_mfi_pass_thru(struct megasas_instance *instance,
struct megasas_cmd *mfi_cmd) struct megasas_cmd *mfi_cmd)
{ {
...@@ -3279,8 +3279,6 @@ build_mpt_mfi_pass_thru(struct megasas_instance *instance, ...@@ -3279,8 +3279,6 @@ build_mpt_mfi_pass_thru(struct megasas_instance *instance,
MPI2_IEEE_SGE_FLAGS_IOCPLBNTA_ADDR; MPI2_IEEE_SGE_FLAGS_IOCPLBNTA_ADDR;
mpi25_ieee_chain->Length = cpu_to_le32(instance->max_chain_frame_sz); mpi25_ieee_chain->Length = cpu_to_le32(instance->max_chain_frame_sz);
return 0;
} }
/** /**
...@@ -3295,11 +3293,7 @@ build_mpt_cmd(struct megasas_instance *instance, struct megasas_cmd *cmd) ...@@ -3295,11 +3293,7 @@ build_mpt_cmd(struct megasas_instance *instance, struct megasas_cmd *cmd)
union MEGASAS_REQUEST_DESCRIPTOR_UNION *req_desc = NULL; union MEGASAS_REQUEST_DESCRIPTOR_UNION *req_desc = NULL;
u16 index; u16 index;
if (build_mpt_mfi_pass_thru(instance, cmd)) { build_mpt_mfi_pass_thru(instance, cmd);
dev_err(&instance->pdev->dev, "Couldn't build MFI pass thru cmd\n");
return NULL;
}
index = cmd->context.smid; index = cmd->context.smid;
req_desc = megasas_get_request_descriptor(instance, index - 1); req_desc = megasas_get_request_descriptor(instance, index - 1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册