From: David Herrmann Date: Mon, 20 Jan 2014 19:15:38 +0000 (+0100) Subject: drm/gem: dont init "ret" in drm_gem_mmap() X-Git-Tag: v4.14-rc1~7723^2~52^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a8469aa81de532180846b22e8ead3d8f4d2f96a2;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: David Herrmann --- diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c index 5ea622c..154d6c6 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) struct drm_device *dev = priv->minor->dev; struct drm_gem_object *obj; struct drm_vma_offset_node *node; - int ret = 0; + int ret; if (drm_device_is_unplugged(dev)) return -ENODEV;