aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/misc/iowarrior.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-07-12 16:50:12 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-10 17:35:39 -0400
commit5bd6e8b3fb787b7337b681aaa601e5c7bdc67c55 (patch)
treef83107e0a01ebe6786a392a85acfaa3f82f2b822 /drivers/usb/misc/iowarrior.c
parente53e841d451a2d0da094b8fea4a7f22b296234f6 (diff)
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/iowarrior.c')
-rw-r--r--drivers/usb/misc/iowarrior.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/misc/iowarrior.c b/drivers/usb/misc/iowarrior.c
index 82966458a004..2de49c8887c5 100644
--- a/drivers/usb/misc/iowarrior.c
+++ b/drivers/usb/misc/iowarrior.c
@@ -283,7 +283,7 @@ static ssize_t iowarrior_read(struct file *file, char __user *buffer,
283 int read_idx; 283 int read_idx;
284 int offset; 284 int offset;
285 285
286 dev = (struct iowarrior *)file->private_data; 286 dev = file->private_data;
287 287
288 /* verify that the device wasn't unplugged */ 288 /* verify that the device wasn't unplugged */
289 if (dev == NULL || !dev->present) 289 if (dev == NULL || !dev->present)
@@ -349,7 +349,7 @@ static ssize_t iowarrior_write(struct file *file,
349 char *buf = NULL; /* for IOW24 and IOW56 we need a buffer */ 349 char *buf = NULL; /* for IOW24 and IOW56 we need a buffer */
350 struct urb *int_out_urb = NULL; 350 struct urb *int_out_urb = NULL;
351 351
352 dev = (struct iowarrior *)file->private_data; 352 dev = file->private_data;
353 353
354 mutex_lock(&dev->mutex); 354 mutex_lock(&dev->mutex);
355 /* verify that the device wasn't unplugged */ 355 /* verify that the device wasn't unplugged */
@@ -484,7 +484,7 @@ static long iowarrior_ioctl(struct file *file, unsigned int cmd,
484 int retval; 484 int retval;
485 int io_res; /* checks for bytes read/written and copy_to/from_user results */ 485 int io_res; /* checks for bytes read/written and copy_to/from_user results */
486 486
487 dev = (struct iowarrior *)file->private_data; 487 dev = file->private_data;
488 if (dev == NULL) { 488 if (dev == NULL) {
489 return -ENODEV; 489 return -ENODEV;
490 } 490 }
@@ -657,7 +657,7 @@ static int iowarrior_release(struct inode *inode, struct file *file)
657 struct iowarrior *dev; 657 struct iowarrior *dev;
658 int retval = 0; 658 int retval = 0;
659 659
660 dev = (struct iowarrior *)file->private_data; 660 dev = file->private_data;
661 if (dev == NULL) { 661 if (dev == NULL) {
662 return -ENODEV; 662 return -ENODEV;
663 } 663 }