]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: Fix return value check
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 21 Oct 2013 03:34:07 +0000 (11:34 +0800)
committerThierry Reding <treding@nvidia.com>
Fri, 20 Dec 2013 14:56:05 +0000 (15:56 +0100)
commit5f434100f953807cf664302649b04f4f81f74b9e
tree5efcfa5cd09c0ff68e5ae4920ff02cc893ea1f01
parentc810ddd6bbbf5b091210e16cc933239e750537b1
drm/tegra: Fix return value check

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

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dsi.c