]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
lpfc: Remove unnessary cast
authorrkennedy <dick.kennedy@avagotech.com>
Tue, 13 Oct 2015 19:48:20 +0000 (12:48 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 19 Oct 2015 16:10:57 +0000 (09:10 -0700)
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 <chuck.anderson@oracle.com>
drivers/scsi/lpfc/lpfc_init.c

index 1992e74ec8858d1fb96665f39aad47fda7c4780d..da9b6fc4b08176be257c6789b83a9169f57f546c 100644 (file)
@@ -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;