diff options
author | Adrian Bunk <bunk@stusta.de> | 2007-07-23 18:15:00 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-07-23 18:15:00 +1000 |
commit | 7e6d08f670a55d79ee037144aa29104e4e8fc700 (patch) | |
tree | 74a943afb82a9c77fc32bfea3381bf6f32293919 | |
parent | 0844c46759b96d52c4952fceb96f7c6bb74b2ce7 (diff) |
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>
-rw-r--r-- | linux-core/drm_bufs.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/linux-core/drm_bufs.c b/linux-core/drm_bufs.c index 665bc65d..f9987ca6 100644 --- 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); |