]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
drm/tegra: Fix return value
authorThierry Reding <thierry.reding@gmail.com>
Sun, 19 May 2013 12:21:22 +0000 (14:21 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Sat, 22 Jun 2013 10:43:51 +0000 (12:43 +0200)
Return NULL instead of 0 in host1x_bo_lookup().

Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/gpu/host1x/drm/gr2d.c

index aca72fc5e2a2b521a3206d767f40b7998454d260..7efd97b2aaa447d2635b72be45732587adc38dfb 100644 (file)
@@ -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);