diff options
author | Joe Perches <joe@perches.com> | 2010-07-12 16:50:03 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-02 15:42:53 -0400 |
commit | abf84383ecadc8ada1963f9976e887c6f0b1bad9 (patch) | |
tree | 34f369a2f7ee7dc3f42d36f487219fbd0782a265 /drivers/media/IR | |
parent | 1676e4ab55944d483695f51e46b1e629af59706e (diff) |
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) | |||
407 | struct imon_context *ictx = NULL; | 407 | struct imon_context *ictx = NULL; |
408 | int retval = 0; | 408 | int retval = 0; |
409 | 409 | ||
410 | ictx = (struct imon_context *)file->private_data; | 410 | ictx = file->private_data; |
411 | 411 | ||
412 | if (!ictx) { | 412 | if (!ictx) { |
413 | err("%s: no context for device", __func__); | 413 | err("%s: no context for device", __func__); |
@@ -812,7 +812,7 @@ static ssize_t vfd_write(struct file *file, const char *buf, | |||
812 | const unsigned char vfd_packet6[] = { | 812 | const unsigned char vfd_packet6[] = { |
813 | 0x01, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF }; | 813 | 0x01, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF }; |
814 | 814 | ||
815 | ictx = (struct imon_context *)file->private_data; | 815 | ictx = file->private_data; |
816 | if (!ictx) { | 816 | if (!ictx) { |
817 | err("%s: no context for device", __func__); | 817 | err("%s: no context for device", __func__); |
818 | return -ENODEV; | 818 | return -ENODEV; |
@@ -896,7 +896,7 @@ static ssize_t lcd_write(struct file *file, const char *buf, | |||
896 | int retval = 0; | 896 | int retval = 0; |
897 | struct imon_context *ictx; | 897 | struct imon_context *ictx; |
898 | 898 | ||
899 | ictx = (struct imon_context *)file->private_data; | 899 | ictx = file->private_data; |
900 | if (!ictx) { | 900 | if (!ictx) { |
901 | err("%s: no context for device", __func__); | 901 | err("%s: no context for device", __func__); |
902 | return -ENODEV; | 902 | return -ENODEV; |