]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: mic_x100_dma: Use PTR_ERR_OR_ZERO()
authorVasyl Gomonovych <gomonovych@gmail.com>
Mon, 27 Nov 2017 23:07:08 +0000 (00:07 +0100)
committerVinod Koul <vinod.koul@intel.com>
Mon, 4 Dec 2017 17:10:38 +0000 (22:40 +0530)
commitd97cd19f1e8ee8c5a574683118bae08af648870b
treeeb2e83a03b871ae2c46fd9f87140e9321b22286b
parentfc34a8d7a6e80eb2c2304f3fb1526e012599ae42
dmaengine: mic_x100_dma: Use PTR_ERR_OR_ZERO()

Fix ptr_ret.cocci warnings:
drivers/dma/mic_x100_dma.c:483:1-3: WARNING: PTR_ERR_OR_ZERO can be used

Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR

Generated by: scripts/coccinelle/api/ptr_ret.cocci

Signed-off-by: Vasyl Gomonovych <gomonovych@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/mic_x100_dma.c