Skip to content

Commit

Permalink
usb: auerswald free kill urb cleanup
Browse files Browse the repository at this point in the history
- 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>
  • Loading branch information
Mariusz Kozlowski authored and Greg Kroah-Hartman committed Dec 1, 2006
1 parent 4ba0b2e commit 2891a51
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions drivers/usb/misc/auerswald.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
usb_free_urb(bp->urbp);
kfree(bp);
}

Expand Down Expand Up @@ -1155,8 +1153,7 @@ static void auerswald_int_release (pauerswald_t cp)
dbg ("auerswald_int_release");

/* stop the int endpoint */
if (cp->inturbp)
usb_kill_urb (cp->inturbp);
usb_kill_urb (cp->inturbp);

/* deallocate memory */
auerswald_int_free (cp);
Expand Down

0 comments on commit 2891a51

Please sign in to comment.