From: Adrian Bunk Date: Mon, 23 Jul 2007 08:00:51 +0000 (+0200) Subject: drm_rmmap_ioctl(): remove dead code X-Git-Tag: MMI-PSA29.97-13-9~40648^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7ea4d4bd5e21380f028c3a6e2500655090a3f932;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git drm_rmmap_ioctl(): remove dead code This patch removes some obviously dead code spotted by the Coverity checker. Signed-off-by: Adrian Bunk Signed-off-by: Dave Airlie --- 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);