drm/tegra: Check for NULL pointer instead of IS_ERR()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 4 Dec 2014 11:00:35 +0000 (14:00 +0300)
committerThierry Reding <treding@nvidia.com>
Tue, 27 Jan 2015 09:14:36 +0000 (10:14 +0100)
commitbf19b885f956eb0fec7dd7c02400b679dca7312e
treef36b19cbb5cb340e6c6fb1c6e8a5a26b12e9e8af
parent518e6227afe076a7facd9a9b5ce1d5ded98732d5
drm/tegra: Check for NULL pointer instead of IS_ERR()

iommu_domain_alloc() returns NULL on error, it never returns error
pointers.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/drm.c