diff options
author | Thierry Reding <thierry.reding@gmail.com> | 2013-05-19 14:21:22 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2013-06-22 12:43:51 +0200 |
commit | dc618db75df9b930293786b4dc763fb5ea7bed15 (patch) | |
tree | f67e6dc6d14213c8bd37461de40daa09b50b7a12 /drivers/gpu/host1x | |
parent | a191e48d442f2d996e2a7292802a2ad22ecb503a (diff) | |
download | kernel_goldelico_gta04-dc618db75df9b930293786b4dc763fb5ea7bed15.zip kernel_goldelico_gta04-dc618db75df9b930293786b4dc763fb5ea7bed15.tar.gz kernel_goldelico_gta04-dc618db75df9b930293786b4dc763fb5ea7bed15.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/host1x/drm/gr2d.c b/drivers/gpu/host1x/drm/gr2d.c index aca72fc..7efd97b 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); |