i2c: cpm: remove casting dma_alloc

Generated by:  alloc_cast.cocci

Signed-off-by: Vasyl Gomonovych <[email protected]>
Acked-by: Jochen Friedrich <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
Vasyl Gomonovych 2019-06-23 23:13:53 +02:00 • committed by Wolfram Sang
commit 998bcae4d6

View file

@ -540,7 +540,9 @@ static int cpm_i2c_setup(struct cpm_i2c *cpm)
}
out_be32(&rbdf[i].cbd_bufaddr, ((cpm->rxdma[i] + 1) & ~1));
cpm->txbuf[i] = (unsigned char *)dma_alloc_coherent(&cpm->ofdev->dev, CPM_MAX_READ + 1, &cpm->txdma[i], GFP_KERNEL);
cpm->txbuf[i] = dma_alloc_coherent(&cpm->ofdev->dev,
CPM_MAX_READ + 1,
&cpm->txdma[i], GFP_KERNEL);
if (!cpm->txbuf[i]) {
ret = -ENOMEM;
goto out_muram;