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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d774efeabc
commit
ec17cf1cfe
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user