From: Thierry Reding Date: Sun, 19 May 2013 12:21:22 +0000 (+0200) Subject: drm/tegra: Fix return value X-Git-Tag: next-20130607~58^2~8 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d81692b7836e09bddbcb23e9391e31beceb84031;p=karo-tx-linux.git drm/tegra: Fix return value Return NULL instead of 0 in host1x_bo_lookup(). Signed-off-by: Thierry Reding --- 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);