usb: auerswald free kill urb cleanup

- usb_free_urb() cleanup
- usb_kill_urb() cleanup

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Mariusz Kozlowski 2006-11-08 15:36:03 +01:00 committed by Greg Kroah-Hartman
parent 4ba0b2ed58
commit 2891a51cc2
1 changed files with 2 additions and 5 deletions

View File

@ -704,9 +704,7 @@ static void auerbuf_free (pauerbuf_t bp)
{
kfree(bp->bufp);
kfree(bp->dr);
if (bp->urbp) {
usb_free_urb(bp->urbp);
}
kfree(bp);
}
@ -1155,7 +1153,6 @@ static void auerswald_int_release (pauerswald_t cp)
dbg ("auerswald_int_release");
/* stop the int endpoint */
if (cp->inturbp)
usb_kill_urb (cp->inturbp);
/* deallocate memory */