diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-01-20 14:15:38 -0500 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-03-16 07:11:01 -0400 |
commit | a8469aa81de532180846b22e8ead3d8f4d2f96a2 (patch) | |
tree | 753fcafb3a691dd4aef48217dcb25664b6096361 /drivers/gpu/drm/drm_gem.c | |
parent | b28cd41f9e9bb8085f7362c80833fc129628d3d6 (diff) |
drm/gem: dont init "ret" in drm_gem_mmap()
There is no need to initialize this variable, so drop it. Otherwise, the
compiler won't warn if we use it unintialized.
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: David Herrmann <dh.herrmann@gmail.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 5ea622c54e76..154d6c6955c1 100644 --- a/drivers/gpu/drm/drm_gem.c +++ b/drivers/gpu/drm/drm_gem.c | |||
@@ -820,7 +820,7 @@ int drm_gem_mmap(struct file *filp, struct vm_area_struct *vma) | |||
820 | struct drm_device *dev = priv->minor->dev; | 820 | struct drm_device *dev = priv->minor->dev; |
821 | struct drm_gem_object *obj; | 821 | struct drm_gem_object *obj; |
822 | struct drm_vma_offset_node *node; | 822 | struct drm_vma_offset_node *node; |
823 | int ret = 0; | 823 | int ret; |
824 | 824 | ||
825 | if (drm_device_is_unplugged(dev)) | 825 | if (drm_device_is_unplugged(dev)) |
826 | return -ENODEV; | 826 | return -ENODEV; |