Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6cb9b4f authored by Firo Yang's avatar Firo Yang Committed by James Bottomley
Browse files

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: default avatarFiro Yang <firogm@gmail.com>
Signed-off-by: default avatarJames Smart <james.smart@avagotech.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Odin.com>
parent 290237d2
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -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;