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:
Ming Lei
2008-02-24 18:41:47 +08:00
committed by Greg Kroah-Hartman
parent a5b6f60c5a
commit cdc9779228
37 changed files with 101 additions and 101 deletions

View File

@@ -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);
}
}