aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/misc/yurex.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/misc/yurex.c b/drivers/usb/misc/yurex.c
index 1472805083de..c3a45da11610 100644
--- a/drivers/usb/misc/yurex.c
+++ b/drivers/usb/misc/yurex.c
@@ -358,7 +358,7 @@ static int yurex_fasync(int fd, struct file *file, int on)
358{ 358{
359 struct usb_yurex *dev; 359 struct usb_yurex *dev;
360 360
361 dev = (struct usb_yurex *)file->private_data; 361 dev = file->private_data;
362 return fasync_helper(fd, file, on, &dev->async_queue); 362 return fasync_helper(fd, file, on, &dev->async_queue);
363} 363}
364 364
@@ -401,7 +401,7 @@ static int yurex_release(struct inode *inode, struct file *file)
401{ 401{
402 struct usb_yurex *dev; 402 struct usb_yurex *dev;
403 403
404 dev = (struct usb_yurex *)file->private_data; 404 dev = file->private_data;
405 if (dev == NULL) 405 if (dev == NULL)
406 return -ENODEV; 406 return -ENODEV;
407 407
@@ -418,7 +418,7 @@ static ssize_t yurex_read(struct file *file, char *buffer, size_t count, loff_t
418 char in_buffer[20]; 418 char in_buffer[20];
419 unsigned long flags; 419 unsigned long flags;
420 420
421 dev = (struct usb_yurex *)file->private_data; 421 dev = file->private_data;
422 422
423 mutex_lock(&dev->io_mutex); 423 mutex_lock(&dev->io_mutex);
424 if (!dev->interface) { /* already disconnected */ 424 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 DEFINE_WAIT(wait); 455 DEFINE_WAIT(wait);
456 456
457 count = min(sizeof(buffer), count); 457 count = min(sizeof(buffer), count);
458 dev = (struct usb_yurex *)file->private_data; 458 dev = file->private_data;
459 459
460 /* verify that we actually have some data to write */ 460 /* verify that we actually have some data to write */
461 if (count == 0) 461 if (count == 0)