Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i2c: cpm: remove casting dma_alloc

Generated by: alloc_cast.cocci

Signed-off-by: Vasyl Gomonovych <gomonovych@gmail.com>
Acked-by: Jochen Friedrich <jochen@scram.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>

authored by

Vasyl Gomonovych and committed by
Wolfram Sang
998bcae4 00386171

+3 -1
+3 -1
drivers/i2c/busses/i2c-cpm.c
··· 540 540 } 541 541 out_be32(&rbdf[i].cbd_bufaddr, ((cpm->rxdma[i] + 1) & ~1)); 542 542 543 - cpm->txbuf[i] = (unsigned char *)dma_alloc_coherent(&cpm->ofdev->dev, CPM_MAX_READ + 1, &cpm->txdma[i], GFP_KERNEL); 543 + cpm->txbuf[i] = dma_alloc_coherent(&cpm->ofdev->dev, 544 + CPM_MAX_READ + 1, 545 + &cpm->txdma[i], GFP_KERNEL); 544 546 if (!cpm->txbuf[i]) { 545 547 ret = -ENOMEM; 546 548 goto out_muram;