diff options
author | Joe Perches <joe@perches.com> | 2010-07-12 17:50:03 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-02 16:42:53 -0300 |
commit | abf84383ecadc8ada1963f9976e887c6f0b1bad9 (patch) | |
tree | 34f369a2f7ee7dc3f42d36f487219fbd0782a265 /drivers/media/IR | |
parent | 1676e4ab55944d483695f51e46b1e629af59706e (diff) | |
download | blackbird-op-linux-abf84383ecadc8ada1963f9976e887c6f0b1bad9.tar.gz blackbird-op-linux-abf84383ecadc8ada1963f9976e887c6f0b1bad9.zip |
V4L/DVB: drivers/media: Remove unnecessary casts of private_data
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Jarod Wilson <jarod@redhat.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/IR')
-rw-r--r-- | drivers/media/IR/imon.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/IR/imon.c b/drivers/media/IR/imon.c index 0195dd5ac078..65c125e44e96 100644 --- a/drivers/media/IR/imon.c +++ b/drivers/media/IR/imon.c @@ -407,7 +407,7 @@ static int display_close(struct inode *inode, struct file *file) struct imon_context *ictx = NULL; int retval = 0; - ictx = (struct imon_context *)file->private_data; + ictx = file->private_data; if (!ictx) { err("%s: no context for device", __func__); @@ -812,7 +812,7 @@ static ssize_t vfd_write(struct file *file, const char *buf, const unsigned char vfd_packet6[] = { 0x01, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF }; - ictx = (struct imon_context *)file->private_data; + ictx = file->private_data; if (!ictx) { err("%s: no context for device", __func__); return -ENODEV; @@ -896,7 +896,7 @@ static ssize_t lcd_write(struct file *file, const char *buf, int retval = 0; struct imon_context *ictx; - ictx = (struct imon_context *)file->private_data; + ictx = file->private_data; if (!ictx) { err("%s: no context for device", __func__); return -ENODEV; |