]> git.baikalelectronics.ru Git - kernel.git/commit
HSI: omap_ssi: Fix return value check in ssi_debug_add_ctrl()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 30 Jul 2014 00:53:41 +0000 (08:53 +0800)
committerSebastian Reichel <sre@kernel.org>
Wed, 30 Jul 2014 22:20:33 +0000 (00:20 +0200)
commit8038776c645078a380804fa9dafdac25432f03f6
treee50ce59ee321d3a7ab997cc75f8c8a84520b1908
parent015a0acf7754cba043b682b15ed2c435625e0b69
HSI: omap_ssi: Fix return value check in ssi_debug_add_ctrl()

In case of error, the function debugfs_create_*() returns NULL
pointer not ERR_PTR() if debugfs is enabled. The IS_ERR() test
in the return value check should be replaced with NULL test.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/hsi/controllers/omap_ssi.c