From: Kulikov Vasiliy Date: Tue, 29 Jun 2010 10:15:43 +0000 (+0400) Subject: Staging: crystalhd_lnx: remove casts from void* X-Git-Tag: firefly_0821_release~9833^2~1255^2~1^2~232 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=764f2ca6e4f7b8d8ce0867c154db42e98a83521e;p=firefly-linux-kernel-4.4.55.git Staging: crystalhd_lnx: remove casts from void* Remove unnesessary casts from void*. Signed-off-by: Kulikov Vasiliy Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/crystalhd/crystalhd_lnx.c b/drivers/staging/crystalhd/crystalhd_lnx.c index 9d2805a33fd6..60839690beee 100644 --- a/drivers/staging/crystalhd/crystalhd_lnx.c +++ b/drivers/staging/crystalhd/crystalhd_lnx.c @@ -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;