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/hub.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/hub.c')
-rw-r--r-- | drivers/usb/core/hub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 7479bd329abb..c74baad19b16 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c | |||
@@ -293,7 +293,7 @@ void usb_kick_khubd(struct usb_device *hdev) | |||
293 | /* completion function, fires on port status changes and various faults */ | 293 | /* completion function, fires on port status changes and various faults */ |
294 | static void hub_irq(struct urb *urb, struct pt_regs *regs) | 294 | static void hub_irq(struct urb *urb, struct pt_regs *regs) |
295 | { | 295 | { |
296 | struct usb_hub *hub = (struct usb_hub *)urb->context; | 296 | struct usb_hub *hub = urb->context; |
297 | int status; | 297 | int status; |
298 | int i; | 298 | int i; |
299 | unsigned long bits; | 299 | unsigned long bits; |
@@ -311,7 +311,7 @@ static void hub_irq(struct urb *urb, struct pt_regs *regs) | |||
311 | goto resubmit; | 311 | goto resubmit; |
312 | hub->error = urb->status; | 312 | hub->error = urb->status; |
313 | /* FALL THROUGH */ | 313 | /* FALL THROUGH */ |
314 | 314 | ||
315 | /* let khubd handle things */ | 315 | /* let khubd handle things */ |
316 | case 0: /* we got data: port status changed */ | 316 | case 0: /* we got data: port status changed */ |
317 | bits = 0; | 317 | bits = 0; |