summaryrefslogtreecommitdiff
path: root/drivers/usb/core/urb.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2006-09-13 23:38:41 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-09-27 22:58:59 +0400
commitec17cf1cfe0b557210b27313bd584e9b5187d4ca (patch)
tree002f63361c189d3ce3820284199e6fe5d3d95eec /drivers/usb/core/urb.c
parentd774efeabccf5f5207aa70d5c126fc928e8b30bd (diff)
downloadlinux-ec17cf1cfe0b557210b27313bd584e9b5187d4ca.tar.xz
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/urb.c')
-rw-r--r--drivers/usb/core/urb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/urb.c b/drivers/usb/core/urb.c
index 576919927f53..9801d08edacf 100644
--- a/drivers/usb/core/urb.c
+++ b/drivers/usb/core/urb.c
@@ -57,7 +57,7 @@ struct urb *usb_alloc_urb(int iso_packets, gfp_t mem_flags)
{
struct urb *urb;
- urb = (struct urb *)kmalloc(sizeof(struct urb) +
+ urb = kmalloc(sizeof(struct urb) +
iso_packets * sizeof(struct usb_iso_packet_descriptor),
mem_flags);
if (!urb) {