Browse Source

drm/tegra: Fix return value

Return NULL instead of 0 in host1x_bo_lookup().

Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Thierry Reding 12 years ago
parent
commit
dc618db75d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/gpu/host1x/drm/gr2d.c

+ 1 - 1
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);