Skip to contentSkip to conversation

crystalhd_lnx: remove casts from void*

PATCH Applied Kulikov Vasiliy 1 participant 1 message Jun 29, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 13/25 crystalhd_lnx: remove casts from void*

Remove unnesessary casts from void*.

---
 drivers/staging/crystalhd/crystalhd_lnx.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/crystalhd/crystalhd_lnx.c +2 -2
index a4ec891..ce67392 100644
@@ -273,7 +273,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;
@@ -334,7 +334,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;
Signature · 1 line
1.7.0.4