Skip to content

Commit

Permalink
Staging: crystalhd_lnx: remove casts from void*
Browse files Browse the repository at this point in the history
Remove unnesessary casts from void*.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Kulikov Vasiliy authored and Greg Kroah-Hartman committed Jul 8, 2010
1 parent 440a654 commit 764f2ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/crystalhd/crystalhd_lnx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 764f2ca

Please sign in to comment.