Skip to content

Commit

Permalink
usb: usbmixer 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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Mariusz Kozlowski authored and gregkh committed Dec 1, 2006
1 parent f5e135a commit 68df9de
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions sound/usb/usbmixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1620,8 +1620,7 @@ static void snd_usb_mixer_free(struct usb_mixer_interface *mixer)
kfree(mixer->urb->transfer_buffer);
usb_free_urb(mixer->urb);
}
if (mixer->rc_urb)
usb_free_urb(mixer->rc_urb);
usb_free_urb(mixer->rc_urb);
kfree(mixer->rc_setup_packet);
kfree(mixer);
}
Expand Down Expand Up @@ -2056,8 +2055,6 @@ void snd_usb_mixer_disconnect(struct list_head *p)
struct usb_mixer_interface *mixer;

mixer = list_entry(p, struct usb_mixer_interface, list);
if (mixer->urb)
usb_kill_urb(mixer->urb);
if (mixer->rc_urb)
usb_kill_urb(mixer->rc_urb);
usb_kill_urb(mixer->urb);
usb_kill_urb(mixer->rc_urb);
}

0 comments on commit 68df9de

Please sign in to comment.