]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: hisilicon: Use IS_ERR() instead of IS_ERR_OR_NULL()
authorTang Bin <tangbin@cmss.chinamobile.com>
Mon, 27 Apr 2020 09:11:45 +0000 (17:11 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 27 Apr 2020 13:08:40 +0000 (14:08 +0100)
commitc8c527d7888f0363bc1341f88b9aa62d46ce1d45
treedefe3aaf4f956f2a4427b1bc13de23d2f4f65a16
parent827989b7d5ec296d789ad17acb66c88dda67e681
ASoC: hisilicon: Use IS_ERR() instead of IS_ERR_OR_NULL()

In the function hi6210_i2s_probe(), devm_clk_get() doesn't return NULL.
Thus use IS_ERR() to validate the return value instead of IS_ERR_OR_NULL().

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20200427091145.4268-1-tangbin@cmss.chinamobile.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/hisilicon/hi6210-i2s.c