Vitaly Kuzmichev ac5d32d15c USB-CDC: Fix tx/rx_req memory leaks
Remove and fix needless and destructive operations with tx/rx_req.

1) 'req' in rx_complete is always not NULL and always equals to rx_req
2) Free allocated tx_req if rx_req allocation has failed
3) Do not zero out tx/rx_req in usb_eth_init, leave this for
eth_reset_config which will be called at the next use of usb0
4) Additional check in usb_eth_recv is not required

Signed-off-by: Vitaly Kuzmichev <vkuzmichev@mvista.com>
2010-10-13 12:07:58 +02:00
..
2010-09-20 21:57:17 +02:00
2009-04-06 20:40:46 +02:00
2009-04-06 20:40:46 +02:00
2009-04-06 20:40:46 +02:00
2010-09-20 21:57:17 +02:00
2010-10-13 12:07:58 +02:00
2010-09-20 21:57:16 +02:00
2009-04-06 20:40:46 +02:00
2009-04-06 20:40:46 +02:00
2009-04-06 20:40:47 +02:00
2010-09-20 21:57:17 +02:00