提交 2891a51c 编写于 作者: M Mariusz Kozlowski 提交者: Greg Kroah-Hartman

usb: auerswald free kill urb cleanup

- usb_free_urb() cleanup
- usb_kill_urb() cleanup
Signed-off-by: NMariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 4ba0b2ed
......@@ -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);
}
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册