From 8541b42e551449bdc5e02a9fb605f2e09b19783a Mon Sep 17 00:00:00 2001 From: rkennedy Date: Tue, 13 Oct 2015 12:48:20 -0700 Subject: [PATCH] lpfc: Remove unnessary cast Submitted by james.smart () james.smart.()@emulex.comSubmitted by Firo Yang Firo.Yang@emulex.com From: Firo Yang firogm@gmail.com 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: Firo Yang firogm@gmail.com Signed-off-by: James Smart james.smart@avagotech.com http://marc.info/?l=linux-scsi&m=144105411103737&w=2 Orabug: 22029622 From dick.kennedy@avagotech.com lpfc-10.5.0.1-11.0.0.3-1.tar.gz Acked-by: Chuck Anderson --- drivers/scsi/lpfc/lpfc_init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 1992e74ec885..da9b6fc4b081 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c @@ -4982,8 +4982,7 @@ lpfc_sli_driver_resource_setup(struct lpfc_hba *phba) } if (!phba->sli.ring) - phba->sli.ring = (struct lpfc_sli_ring *) - kzalloc(LPFC_SLI3_MAX_RING * + phba->sli.ring = kzalloc(LPFC_SLI3_MAX_RING * sizeof(struct lpfc_sli_ring), GFP_KERNEL); if (!phba->sli.ring) return -ENOMEM; -- 2.50.1