mirror of
https://github.com/cathery/sys-con.git
synced 2024-11-16 14:09:51 +00:00
Remove unnecessary USB exit calls
This commit is contained in:
parent
cdcc709642
commit
7d9ee7e233
@ -10,7 +10,6 @@ SwitchUSBDevice::SwitchUSBDevice(UsbHsInterface *interfaces, int length)
|
|||||||
|
|
||||||
SwitchUSBDevice::~SwitchUSBDevice()
|
SwitchUSBDevice::~SwitchUSBDevice()
|
||||||
{
|
{
|
||||||
Close();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SwitchUSBDevice::SwitchUSBDevice()
|
SwitchUSBDevice::SwitchUSBDevice()
|
||||||
|
@ -10,7 +10,6 @@ SwitchUSBEndpoint::SwitchUSBEndpoint(UsbHsClientIfSession &if_session, usb_endpo
|
|||||||
|
|
||||||
SwitchUSBEndpoint::~SwitchUSBEndpoint()
|
SwitchUSBEndpoint::~SwitchUSBEndpoint()
|
||||||
{
|
{
|
||||||
Close();
|
|
||||||
if (m_buffer != nullptr)
|
if (m_buffer != nullptr)
|
||||||
{
|
{
|
||||||
free(m_buffer);
|
free(m_buffer);
|
||||||
|
@ -10,7 +10,6 @@ SwitchUSBInterface::SwitchUSBInterface(UsbHsInterface &interface)
|
|||||||
|
|
||||||
SwitchUSBInterface::~SwitchUSBInterface()
|
SwitchUSBInterface::~SwitchUSBInterface()
|
||||||
{
|
{
|
||||||
Close();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Result SwitchUSBInterface::Open()
|
Result SwitchUSBInterface::Open()
|
||||||
|
Loading…
Reference in New Issue
Block a user