aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/misc
diff options
context:
space:
mode:
authorArjun Sreedharan <arjun024@gmail.com>2014-08-18 18:53:34 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-24 00:50:57 -0400
commit113ad911ad4a1ccbd0eaf6926b75b0ec77510c14 (patch)
treeba01fd5cd7758b402bdf15c22b260952887a0d5e /drivers/usb/misc
parentcffb9be80f8a6d51d025780864c781ba83541720 (diff)
usb: misc: yurex: remove useless casting of private_data
Signed-off-by: Arjun Sreedharan <arjun024@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/misc')
-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)