projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f695baf
)
drm_rmmap_ioctl(): remove dead code
author
Adrian Bunk
<bunk@stusta.de>
Mon, 23 Jul 2007 08:00:51 +0000
(10:00 +0200)
committer
Dave Airlie
<airlied@linux.ie>
Mon, 23 Jul 2007 08:29:41 +0000
(18:29 +1000)
This patch removes some obviously dead code spotted by the Coverity
checker.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/drm_bufs.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/drm/drm_bufs.c
b/drivers/char/drm/drm_bufs.c
index 923174c54a1cd3150d30cd06f298d130beb20e57..3d1ec8234b8b5fb549b8f39e9fb270b787294066 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);