scsi: ibmvscsi: remove casting dma_alloc_coherent
Subsystems (3)
PATCH 1/1 scsi: ibmvscsi: remove casting dma_alloc_coherent
Fix allocation style
Generated by: alloc_cast.cocci
Signed-off-by Vasyl Gomonovych <[email protected]>
--- drivers/scsi/ibmvscsi/ibmvscsi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/scsi/ibmvscsi/ibmvscsi.c +1 -2
@@ -715,8 +715,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) {
Signature · 1 line
2.17.1