Skip to content
Commit 1bb0b8b1 authored by Miaoqian Lin's avatar Miaoqian Lin Committed by Nishanth Menon
Browse files

soc: ti: knav_dma: Fix NULL vs IS_ERR() checking in dma_init



Since devm_ioremap_resource() function return error pointers.
The pktdma_get_regs() function does not return NULL, It return error
pointers too. Using IS_ERR() to check the return value to fix this.

Signed-off-by: default avatarMiaoqian Lin <linmq006@gmail.com>
Signed-off-by: default avatarNishanth Menon <nm@ti.com>
Link: https://lore.kernel.org/r/20211214015544.7270-1-linmq006@gmail.com
parent a34ff76a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment