git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
drm_rmmap_ioctl(): remove dead code
[pandora-kernel.git]
/
drivers
/
char
/
drm
/
drm_bufs.c
diff --git
a/drivers/char/drm/drm_bufs.c
b/drivers/char/drm/drm_bufs.c
index
923174c
..
3d1ec82
100644
(file)
--- a/
drivers/char/drm/drm_bufs.c
+++ b/
drivers/char/drm/drm_bufs.c
@@
-479,11
+479,6
@@
int drm_rmmap_ioctl(struct inode *inode, struct file *filp,
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);