Commit 764f2ca6 authored by Kulikov Vasiliy's avatar Kulikov Vasiliy Committed by Greg Kroah-Hartman

Staging: crystalhd_lnx: remove casts from void*

Remove unnesessary casts from void*.
Signed-off-by: default avatarKulikov Vasiliy <segooon@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 440a6547
...@@ -271,7 +271,7 @@ static long chd_dec_ioctl(struct file *fd, unsigned int cmd, unsigned long ua) ...@@ -271,7 +271,7 @@ static long chd_dec_ioctl(struct file *fd, unsigned int cmd, unsigned long ua)
return -EINVAL; return -EINVAL;
} }
uc = (struct crystalhd_user *)fd->private_data; uc = fd->private_data;
if (!uc) { if (!uc) {
BCMLOG_ERR("Failed to get uc\n"); BCMLOG_ERR("Failed to get uc\n");
return -ENODATA; return -ENODATA;
...@@ -332,7 +332,7 @@ static int chd_dec_close(struct inode *in, struct file *fd) ...@@ -332,7 +332,7 @@ static int chd_dec_close(struct inode *in, struct file *fd)
return -EINVAL; return -EINVAL;
} }
uc = (struct crystalhd_user *)fd->private_data; uc = fd->private_data;
if (!uc) { if (!uc) {
BCMLOG_ERR("Failed to get uc\n"); BCMLOG_ERR("Failed to get uc\n");
return -ENODATA; return -ENODATA;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment