diff options
author | Adrian Bunk <bunk@stusta.de> | 2007-07-23 10:00:51 +0200 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-07-23 18:29:41 +1000 |
commit | 7ea4d4bd5e21380f028c3a6e2500655090a3f932 (patch) | |
tree | cde61f2f17a6c5d52c41cebf5ff0e22ce9712464 /drivers/char | |
parent | f695baf2df9e0413d3521661070103711545207a (diff) | |
download | talos-op-linux-7ea4d4bd5e21380f028c3a6e2500655090a3f932.tar.gz talos-op-linux-7ea4d4bd5e21380f028c3a6e2500655090a3f932.zip |
drm_rmmap_ioctl(): remove dead code
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>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/drm/drm_bufs.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/char/drm/drm_bufs.c b/drivers/char/drm/drm_bufs.c index 923174c54a1c..3d1ec8234b8b 100644 --- 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); |