dmaengine: ti: k3-udma: Use PTR_ERR_OR_ZERO() to simplify code
authorSamuel Zou <zou_wei@huawei.com>
Wed, 6 May 2020 09:25:46 +0000 (17:25 +0800)
committerVinod Koul <vkoul@kernel.org>
Wed, 13 May 2020 14:52:19 +0000 (20:22 +0530)
commit214a0006b2c83ffa41794a424a9dd6758ca9eb4d
tree175dda9f6fa18e09658249418bce00c3bf0bd095
parentc794f7edbcd7069d888d3d49866e6adacccf7766
dmaengine: ti: k3-udma: Use PTR_ERR_OR_ZERO() to simplify code

Fixes coccicheck warnings:

drivers/dma/ti/k3-udma.c:1294:1-3: WARNING: PTR_ERR_OR_ZERO can be used
drivers/dma/ti/k3-udma.c:1311:1-3: WARNING: PTR_ERR_OR_ZERO can be used
drivers/dma/ti/k3-udma.c:1376:1-3: WARNING: PTR_ERR_OR_ZERO can be used

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Samuel Zou <zou_wei@huawei.com>
Link: https://lore.kernel.org/r/1588757146-38858-1-git-send-email-zou_wei@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ti/k3-udma.c