diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2006-09-13 15:38:41 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-27 14:58:59 -0400 |
commit | ec17cf1cfe0b557210b27313bd584e9b5187d4ca (patch) | |
tree | 002f63361c189d3ce3820284199e6fe5d3d95eec /drivers/usb/core/devices.c | |
parent | d774efeabccf5f5207aa70d5c126fc928e8b30bd (diff) |
USB: Remove unneeded void * casts in core files
The patch removes unneeded casts for the following (void *) pointers:
- struct file: private
- struct urb: context
- struct usb_bus: hcpriv
- return value of kmalloc()
The patch also contains some whitespace cleanup in the relevant areas.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core/devices.c')
-rw-r--r-- | drivers/usb/core/devices.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/core/devices.c b/drivers/usb/core/devices.c index 241d37326ea..3538c2fdadf 100644 --- a/drivers/usb/core/devices.c +++ b/drivers/usb/core/devices.c | |||
@@ -593,7 +593,7 @@ static ssize_t usb_device_read(struct file *file, char __user *buf, size_t nbyte | |||
593 | /* Kernel lock for "lastev" protection */ | 593 | /* Kernel lock for "lastev" protection */ |
594 | static unsigned int usb_device_poll(struct file *file, struct poll_table_struct *wait) | 594 | static unsigned int usb_device_poll(struct file *file, struct poll_table_struct *wait) |
595 | { | 595 | { |
596 | struct usb_device_status *st = (struct usb_device_status *)file->private_data; | 596 | struct usb_device_status *st = file->private_data; |
597 | unsigned int mask = 0; | 597 | unsigned int mask = 0; |
598 | 598 | ||
599 | lock_kernel(); | 599 | lock_kernel(); |
@@ -603,7 +603,7 @@ static unsigned int usb_device_poll(struct file *file, struct poll_table_struct | |||
603 | unlock_kernel(); | 603 | unlock_kernel(); |
604 | return POLLIN; | 604 | return POLLIN; |
605 | } | 605 | } |
606 | 606 | ||
607 | /* we may have dropped BKL - need to check for having lost the race */ | 607 | /* we may have dropped BKL - need to check for having lost the race */ |
608 | if (file->private_data) { | 608 | if (file->private_data) { |
609 | kfree(st); | 609 | kfree(st); |