diff options
author | Xu Wang <vulab@iscas.ac.cn> | 2020-11-20 11:36:48 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-11-24 06:17:18 +0300 |
commit | 27a34943bd89c101d3fb4a895d51d41a3c35ccab (patch) | |
tree | 991d2f5da9fe9d6521d34dc78522478d43ca8c90 /drivers/scsi/pm8001/pm8001_init.c | |
parent | bdd1cc0377d3ce96683d178f30714da478f6a955 (diff) | |
download | linux-27a34943bd89c101d3fb4a895d51d41a3c35ccab.tar.xz |
scsi: pm8001: Remove typecast for pointer returned by kcalloc()
Stop typecasting the value returned by kcalloc().
Link: https://lore.kernel.org/r/20201120083648.9319-1-vulab@iscas.ac.cn
Acked-by: Jack Wang <jinpu.wang@cloud.ionos.com>
Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/pm8001/pm8001_init.c')
-rw-r--r-- | drivers/scsi/pm8001/pm8001_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c index fb471ad3720a..fefa82378986 100644 --- a/drivers/scsi/pm8001/pm8001_init.c +++ b/drivers/scsi/pm8001/pm8001_init.c @@ -1187,7 +1187,7 @@ pm8001_init_ccb_tag(struct pm8001_hba_info *pm8001_ha, struct Scsi_Host *shost, goto err_out; /* Memory region for ccb_info*/ - pm8001_ha->ccb_info = (struct pm8001_ccb_info *) + pm8001_ha->ccb_info = kcalloc(ccb_count, sizeof(struct pm8001_ccb_info), GFP_KERNEL); if (!pm8001_ha->ccb_info) { PM8001_FAIL_DBG(pm8001_ha, pm8001_printk |