OSDN Git Service
(root)
/
android-x86
/
external-libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0844c46
)
drm_rmmap_ioctl(): remove dead code
author
Adrian Bunk
<bunk@stusta.de>
Mon, 23 Jul 2007 08:15:00 +0000
(18:15 +1000)
committer
Dave Airlie
<airlied@linux.ie>
Mon, 23 Jul 2007 08:15:00 +0000
(18:15 +1000)
This patch removes some obviously dead code spotted by the Coverity
checker.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
linux-core/drm_bufs.c
patch
|
blob
|
history
diff --git
a/linux-core/drm_bufs.c
b/linux-core/drm_bufs.c
index
665bc65
..
f9987ca
100644
(file)
--- a/
linux-core/drm_bufs.c
+++ b/
linux-core/drm_bufs.c
@@
-467,11
+467,6
@@
int drm_rmmap_ioctl(struct drm_device *dev, void *data,
return -EINVAL;
}
- if (!map) {
- mutex_unlock(&dev->struct_mutex);
- return -EINVAL;
- }
-
/* Register and framebuffer maps are permanent */
if ((map->type == _DRM_REGISTERS) || (map->type == _DRM_FRAME_BUFFER)) {
mutex_unlock(&dev->struct_mutex);