[PATCH] [SCSI] esas2r: remove casting dma_alloc_coherent

From: Vasyl Gomonovych
Date: Thu Jul 18 2019 - 15:22:37 EST


Fix allocation style
Generated by: alloc_cast.cocci

Signed-off-by: Vasyl Gomonovych <gomonovych@xxxxxxxxx>
---
drivers/scsi/esas2r/esas2r_ioctl.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/scsi/esas2r/esas2r_ioctl.c b/drivers/scsi/esas2r/esas2r_ioctl.c
index 3d130523c288..eece7e80cb59 100644
--- a/drivers/scsi/esas2r/esas2r_ioctl.c
+++ b/drivers/scsi/esas2r/esas2r_ioctl.c
@@ -1552,7 +1552,7 @@ static int allocate_fw_buffers(struct esas2r_adapter *a, u32 length)

a->firmware.orig_len = length;

- a->firmware.data = (u8 *)dma_alloc_coherent(&a->pcid->dev,
+ a->firmware.data = dma_alloc_coherent(&a->pcid->dev,
(size_t)length,
(dma_addr_t *)&a->firmware.
phys,
@@ -1899,7 +1899,7 @@ int esas2r_write_vda(struct esas2r_adapter *a, const char *buf, long off,

if (!a->vda_buffer) {
dma_addr_t dma_addr;
- a->vda_buffer = (u8 *)dma_alloc_coherent(&a->pcid->dev,
+ a->vda_buffer = dma_alloc_coherent(&a->pcid->dev,
(size_t)
VDA_MAX_BUFFER_SIZE,
&dma_addr,
@@ -2068,7 +2068,7 @@ int esas2r_write_fs(struct esas2r_adapter *a, const char *buf, long off,
re_allocate_buffer:
a->fs_api_buffer_size = length;

- a->fs_api_buffer = (u8 *)dma_alloc_coherent(
+ a->fs_api_buffer = dma_alloc_coherent(
&a->pcid->dev,
(size_t)a->fs_api_buffer_size,
(dma_addr_t *)&a->ppfs_api_buffer,
--
2.17.1