projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b28cd41
)
drm/gem: dont init "ret" in drm_gem_mmap()
author
David Herrmann
<dh.herrmann@gmail.com>
Mon, 20 Jan 2014 19:15:38 +0000
(20:15 +0100)
committer
David Herrmann
<dh.herrmann@gmail.com>
Sun, 16 Mar 2014 11:11:01 +0000
(12:11 +0100)
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>
drivers/gpu/drm/drm_gem.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_gem.c
b/drivers/gpu/drm/drm_gem.c
index
5ea622c
..
154d6c6
100644
(file)
--- 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;