USB: remove unnecessary type casting of urb->context
urb->context code cleanup Signed-off-by: Ming Lei <tom.leiming@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a5b6f60c5a
commit
cdc9779228
@@ -201,7 +201,7 @@ found:
|
||||
|
||||
static void simple_callback (struct urb *urb)
|
||||
{
|
||||
complete ((struct completion *) urb->context);
|
||||
complete(urb->context);
|
||||
}
|
||||
|
||||
static struct urb *simple_alloc_urb (
|
||||
@@ -1046,7 +1046,7 @@ static void unlink1_callback (struct urb *urb)
|
||||
status = usb_submit_urb (urb, GFP_ATOMIC);
|
||||
if (status) {
|
||||
urb->status = status;
|
||||
complete ((struct completion *) urb->context);
|
||||
complete(urb->context);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user