dmaengine: qcom_hidma: fix return value check in hidma_mgmt_of_populate_channels()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 6 Jul 2016 12:19:09 +0000 (12:19 +0000)
committerVinod Koul <vinod.koul@intel.com>
Tue, 12 Jul 2016 04:44:41 +0000 (10:14 +0530)
commit6a2cf55db33d13474b7c339d3e4cef8993508a40
tree2f833a2c15602fd237e646741f0a79548c10f047
parentd3183447ef561efe7e734cb4bc331519c276a786
dmaengine: qcom_hidma: fix return value check in hidma_mgmt_of_populate_channels()

In case of error, the function platform_device_register_full()
returns ERR_PTR() and never returns NULL. The NULL test in the
return value check should be replaced with IS_ERR().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/qcom/hidma_mgmt.c