Commit 113ad911 authored by Arjun Sreedharan's avatar Arjun Sreedharan Committed by Greg Kroah-Hartman

usb: misc: yurex: remove useless casting of private_data

Signed-off-by: default avatarArjun Sreedharan <arjun024@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cffb9be8
...@@ -358,7 +358,7 @@ static int yurex_fasync(int fd, struct file *file, int on) ...@@ -358,7 +358,7 @@ static int yurex_fasync(int fd, struct file *file, int on)
{ {
struct usb_yurex *dev; struct usb_yurex *dev;
dev = (struct usb_yurex *)file->private_data; dev = file->private_data;
return fasync_helper(fd, file, on, &dev->async_queue); return fasync_helper(fd, file, on, &dev->async_queue);
} }
...@@ -401,7 +401,7 @@ static int yurex_release(struct inode *inode, struct file *file) ...@@ -401,7 +401,7 @@ static int yurex_release(struct inode *inode, struct file *file)
{ {
struct usb_yurex *dev; struct usb_yurex *dev;
dev = (struct usb_yurex *)file->private_data; dev = file->private_data;
if (dev == NULL) if (dev == NULL)
return -ENODEV; return -ENODEV;
...@@ -418,7 +418,7 @@ static ssize_t yurex_read(struct file *file, char *buffer, size_t count, loff_t ...@@ -418,7 +418,7 @@ static ssize_t yurex_read(struct file *file, char *buffer, size_t count, loff_t
char in_buffer[20]; char in_buffer[20];
unsigned long flags; unsigned long flags;
dev = (struct usb_yurex *)file->private_data; dev = file->private_data;
mutex_lock(&dev->io_mutex); mutex_lock(&dev->io_mutex);
if (!dev->interface) { /* already disconnected */ if (!dev->interface) { /* already disconnected */
...@@ -455,7 +455,7 @@ static ssize_t yurex_write(struct file *file, const char *user_buffer, size_t co ...@@ -455,7 +455,7 @@ static ssize_t yurex_write(struct file *file, const char *user_buffer, size_t co
DEFINE_WAIT(wait); DEFINE_WAIT(wait);
count = min(sizeof(buffer), count); count = min(sizeof(buffer), count);
dev = (struct usb_yurex *)file->private_data; dev = file->private_data;
/* verify that we actually have some data to write */ /* verify that we actually have some data to write */
if (count == 0) if (count == 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment