Skip to content

Commit

Permalink
drm_rmmap_ioctl(): remove dead code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Dave Airlie committed Jul 23, 2007
1 parent f695baf commit 7ea4d4b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/char/drm/drm_bufs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7ea4d4b

Please sign in to comment.