summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ibmvscsi
diff options
context:
space:
mode:
authorWang Qing <wangqing@vivo.com>2021-03-12 10:18:53 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2021-03-24 22:33:37 -0400
commit0d556a21a9dae9ec4e2373825da653447e4eb79c (patch)
tree96e46505d7aeab1b355f9ba0f6d74845e86517f6 /drivers/scsi/ibmvscsi
parent3ba9f38ed43de60ca93afd2aaf3d27572e0352eb (diff)
downloadlinux-0d556a21a9dae9ec4e2373825da653447e4eb79c.tar.gz
linux-0d556a21a9dae9ec4e2373825da653447e4eb79c.tar.bz2
linux-0d556a21a9dae9ec4e2373825da653447e4eb79c.zip
scsi: ibmvscsi: Remove unnecessary cast
Fix the following coccicheck warning: WARNING: casting value returned by memory allocation function is useless. Link: https://lore.kernel.org/r/1615515534-1250-1-git-send-email-wangqing@vivo.com Signed-off-by: Wang Qing <wangqing@vivo.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/ibmvscsi')
-rw-r--r--drivers/scsi/ibmvscsi/ibmvscsi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/ibmvscsi/ibmvscsi.c b/drivers/scsi/ibmvscsi/ibmvscsi.c
index bef89829ca9b..f33f56680c59 100644
--- a/drivers/scsi/ibmvscsi/ibmvscsi.c
+++ b/drivers/scsi/ibmvscsi/ibmvscsi.c
@@ -717,8 +717,7 @@ static int map_sg_data(struct scsi_cmnd *cmd,
/* get indirect table */
if (!evt_struct->ext_list) {
- evt_struct->ext_list = (struct srp_direct_buf *)
- dma_alloc_coherent(dev,
+ evt_struct->ext_list = dma_alloc_coherent(dev,
SG_ALL * sizeof(struct srp_direct_buf),
&evt_struct->ext_list_token, 0);
if (!evt_struct->ext_list) {