lpfc 8.3.40: Remove useless cast
Subsystems (2)
PATCH 1/1 lpfc 8.3.40: Remove useless cast
Found using coccinelle tool.
Signed-off-by Vladimir Cernov <[email protected]>
--- drivers/scsi/lpfc/lpfc_init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/scsi/lpfc/lpfc_init.c +1 -2
@@ -4721,8 +4721,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 ;
Signature · 1 line
1.7.10.4