summaryrefslogtreecommitdiffstats
path: root/drivers/usb/misc/ftdi-elan.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-07-12 13:50:12 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-10 14:35:39 -0700
commit5bd6e8b3fb787b7337b681aaa601e5c7bdc67c55 (patch)
treef83107e0a01ebe6786a392a85acfaa3f82f2b822 /drivers/usb/misc/ftdi-elan.c
parente53e841d451a2d0da094b8fea4a7f22b296234f6 (diff)
downloadblackbird-op-linux-5bd6e8b3fb787b7337b681aaa601e5c7bdc67c55.tar.gz
blackbird-op-linux-5bd6e8b3fb787b7337b681aaa601e5c7bdc67c55.zip
USB: misc: Remove unnecessary casts of private_data
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/misc/ftdi-elan.c')
-rw-r--r--drivers/usb/misc/ftdi-elan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/misc/ftdi-elan.c b/drivers/usb/misc/ftdi-elan.c
index 82e16630a78b..aecf380f6ecc 100644
--- a/drivers/usb/misc/ftdi-elan.c
+++ b/drivers/usb/misc/ftdi-elan.c
@@ -650,7 +650,7 @@ static int ftdi_elan_open(struct inode *inode, struct file *file)
static int ftdi_elan_release(struct inode *inode, struct file *file)
{
- struct usb_ftdi *ftdi = (struct usb_ftdi *)file->private_data;
+ struct usb_ftdi *ftdi = file->private_data;
if (ftdi == NULL)
return -ENODEV;
up(&ftdi->sw_lock); /* decrement the count on our device */
@@ -673,7 +673,7 @@ static ssize_t ftdi_elan_read(struct file *file, char __user *buffer,
int bytes_read = 0;
int retry_on_empty = 10;
int retry_on_timeout = 5;
- struct usb_ftdi *ftdi = (struct usb_ftdi *)file->private_data;
+ struct usb_ftdi *ftdi = file->private_data;
if (ftdi->disconnected > 0) {
return -ENODEV;
}
OpenPOWER on IntegriCloud