From: Thierry Reding Date: Sun, 19 May 2013 12:21:22 +0000 (+0200) Subject: drm/tegra: Fix return value X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=dc618db75df9b930293786b4dc763fb5ea7bed15;p=openwrt%2Fstaging%2Fblogic.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);