summaryrefslogtreecommitdiff
path: root/drivers/gpu/host1x
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@gmail.com>2013-05-19 14:21:22 +0200
committerThierry Reding <thierry.reding@gmail.com>2013-06-22 12:43:51 +0200
commitdc618db75df9b930293786b4dc763fb5ea7bed15 (patch)
treef67e6dc6d14213c8bd37461de40daa09b50b7a12 /drivers/gpu/host1x
parenta191e48d442f2d996e2a7292802a2ad22ecb503a (diff)
drm/tegra: Fix return value
Return NULL instead of 0 in host1x_bo_lookup(). Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/gpu/host1x')
-rw-r--r--drivers/gpu/host1x/drm/gr2d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/host1x/drm/gr2d.c b/drivers/gpu/host1x/drm/gr2d.c
index aca72fc5e2a2..7efd97b2aaa4 100644
--- a/drivers/gpu/host1x/drm/gr2d.c
+++ b/drivers/gpu/host1x/drm/gr2d.c
@@ -84,7 +84,7 @@ static struct host1x_bo *host1x_bo_lookup(struct drm_device *drm,
gem = drm_gem_object_lookup(drm, file, handle);
if (!gem)
- return 0;
+ return NULL;
mutex_lock(&drm->struct_mutex);
drm_gem_object_unreference(gem);