]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sti: correctly test devm_ioremap() return
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 8 Jun 2015 13:25:52 +0000 (15:25 +0200)
committerBenjamin Gaignard <benjamin.gaignard@linaro.org>
Mon, 8 Jun 2015 13:28:10 +0000 (15:28 +0200)
commite6c70fa3e2a38a39753cfe0633f6f1d1bcd1e58b
tree39e6d4e81633843007564602407dd239cac8c33b
parentcc0aa3cde31e56f0b4c5c88f1122b0a6ef214263
drm/sti: correctly test devm_ioremap() return

In case of error, the function devm_ioremap_nocache() returns NULL
not ERR_PTR(). 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>
drivers/gpu/drm/sti/sti_dvo.c