diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-05-17 13:27:21 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-05-22 10:32:58 +0100 |
commit | 4a1b0714275796fdbc35427cf361eb4123e5e9f6 (patch) | |
tree | 1897d2d9cbec66d84d69ace29ddedfc1778f2f4e /drivers/gpu/drm/drm_gem.c | |
parent | 7eb3b2c83dccddec34787adf67c10c82331d262e (diff) | |
download | op-kernel-dev-4a1b0714275796fdbc35427cf361eb4123e5e9f6.zip op-kernel-dev-4a1b0714275796fdbc35427cf361eb4123e5e9f6.tar.gz |
drm: Don't initialize local ret variable when not needed
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_gem.c')
-rw-r--r-- | drivers/gpu/drm/drm_gem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c index 1ab29a7..72ba075 100644 --- a/drivers/gpu/drm/drm_gem.c +++ b/drivers/gpu/drm/drm_gem.c @@ -328,7 +328,7 @@ drm_gem_create_mmap_offset(struct drm_gem_object *obj) struct drm_gem_mm *mm = dev->mm_private; struct drm_map_list *list; struct drm_local_map *map; - int ret = 0; + int ret; /* Set the object up for mmap'ing */ list = &obj->map_list; |