diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2006-09-13 21:38:41 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-27 11:58:59 -0700 |
commit | ec17cf1cfe0b557210b27313bd584e9b5187d4ca (patch) | |
tree | 002f63361c189d3ce3820284199e6fe5d3d95eec /drivers/usb/core/urb.c | |
parent | d774efeabccf5f5207aa70d5c126fc928e8b30bd (diff) | |
download | kernel_samsung_crespo-ec17cf1cfe0b557210b27313bd584e9b5187d4ca.zip kernel_samsung_crespo-ec17cf1cfe0b557210b27313bd584e9b5187d4ca.tar.gz kernel_samsung_crespo-ec17cf1cfe0b557210b27313bd584e9b5187d4ca.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/urb.c b/drivers/usb/core/urb.c index 5769199..9801d08 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) { |