提交 c6cb9b4f 编写于 作者: F Firo Yang 提交者: James Bottomley

lpfc: Remove unnessary cast

kzalloc() returns a void pointer - no need to cast it in
drivers/scsi/lpfc/lpfc_init.c::lpfc_sli_driver_resource_setup()
Signed-off-by: NFiro Yang <firogm@gmail.com>
Signed-off-by: NJames Smart <james.smart@avagotech.com>
Signed-off-by: NJames Bottomley <JBottomley@Odin.com>
上级 290237d2
...@@ -4982,8 +4982,7 @@ lpfc_sli_driver_resource_setup(struct lpfc_hba *phba) ...@@ -4982,8 +4982,7 @@ lpfc_sli_driver_resource_setup(struct lpfc_hba *phba)
} }
if (!phba->sli.ring) if (!phba->sli.ring)
phba->sli.ring = (struct lpfc_sli_ring *) phba->sli.ring = kzalloc(LPFC_SLI3_MAX_RING *
kzalloc(LPFC_SLI3_MAX_RING *
sizeof(struct lpfc_sli_ring), GFP_KERNEL); sizeof(struct lpfc_sli_ring), GFP_KERNEL);
if (!phba->sli.ring) if (!phba->sli.ring)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册