Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7ea4d4bd5e21380f028c3a6e2500655090a3f932
Commit:     7ea4d4bd5e21380f028c3a6e2500655090a3f932
Parent:     f695baf2df9e0413d3521661070103711545207a
Author:     Adrian Bunk <[EMAIL PROTECTED]>
AuthorDate: Mon Jul 23 10:00:51 2007 +0200
Committer:  Dave Airlie <[EMAIL PROTECTED]>
CommitDate: Mon Jul 23 18:29:41 2007 +1000

    drm_rmmap_ioctl(): remove dead code
    
    This patch removes some obviously dead code spotted by the Coverity
    checker.
    
    Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]>
    Signed-off-by: Dave Airlie <[EMAIL PROTECTED]>
---
 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 923174c..3d1ec82 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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to