Staging: crystalhd_lnx: remove casts from void*
authorKulikov Vasiliy <segooon@gmail.com>
Tue, 29 Jun 2010 10:15:43 +0000 (14:15 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 8 Jul 2010 20:49:35 +0000 (13:49 -0700)
Remove unnesessary casts from void*.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/crystalhd/crystalhd_lnx.c

index 9d2805a..6083969 100644 (file)
@@ -271,7 +271,7 @@ static long chd_dec_ioctl(struct file *fd, unsigned int cmd, unsigned long ua)
                return -EINVAL;
        }
 
-       uc = (struct crystalhd_user *)fd->private_data;
+       uc = fd->private_data;
        if (!uc) {
                BCMLOG_ERR("Failed to get uc\n");
                return -ENODATA;
@@ -332,7 +332,7 @@ static int chd_dec_close(struct inode *in, struct file *fd)
                return -EINVAL;
        }
 
-       uc = (struct crystalhd_user *)fd->private_data;
+       uc = fd->private_data;
        if (!uc) {
                BCMLOG_ERR("Failed to get uc\n");
                return -ENODATA;