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/message.c | |
parent | d774efeabccf5f5207aa70d5c126fc928e8b30bd (diff) | |
download | kernel_samsung_smdk4412-ec17cf1cfe0b557210b27313bd584e9b5187d4ca.zip kernel_samsung_smdk4412-ec17cf1cfe0b557210b27313bd584e9b5187d4ca.tar.gz kernel_samsung_smdk4412-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/message.c')
-rw-r--r-- | drivers/usb/core/message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/message.c b/drivers/usb/core/message.c index 28c6cf2..85b1cd1 100644 --- a/drivers/usb/core/message.c +++ b/drivers/usb/core/message.c @@ -248,7 +248,7 @@ static void sg_clean (struct usb_sg_request *io) static void sg_complete (struct urb *urb, struct pt_regs *regs) { - struct usb_sg_request *io = (struct usb_sg_request *) urb->context; + struct usb_sg_request *io = urb->context; spin_lock (&io->lock); |