From 7d9ee7e23352dd489b0d381601efaacd58ef8dd4 Mon Sep 17 00:00:00 2001 From: cathery Date: Sat, 18 Apr 2020 18:42:28 +0300 Subject: [PATCH] Remove unnecessary USB exit calls --- source/ControllerSwitch/SwitchUSBDevice.cpp | 1 - source/ControllerSwitch/SwitchUSBEndpoint.cpp | 1 - source/ControllerSwitch/SwitchUSBInterface.cpp | 1 - 3 files changed, 3 deletions(-) diff --git a/source/ControllerSwitch/SwitchUSBDevice.cpp b/source/ControllerSwitch/SwitchUSBDevice.cpp index bcb4152..aabbe89 100644 --- a/source/ControllerSwitch/SwitchUSBDevice.cpp +++ b/source/ControllerSwitch/SwitchUSBDevice.cpp @@ -10,7 +10,6 @@ SwitchUSBDevice::SwitchUSBDevice(UsbHsInterface *interfaces, int length) SwitchUSBDevice::~SwitchUSBDevice() { - Close(); } SwitchUSBDevice::SwitchUSBDevice() diff --git a/source/ControllerSwitch/SwitchUSBEndpoint.cpp b/source/ControllerSwitch/SwitchUSBEndpoint.cpp index 4d408c9..eaa2e8d 100644 --- a/source/ControllerSwitch/SwitchUSBEndpoint.cpp +++ b/source/ControllerSwitch/SwitchUSBEndpoint.cpp @@ -10,7 +10,6 @@ SwitchUSBEndpoint::SwitchUSBEndpoint(UsbHsClientIfSession &if_session, usb_endpo SwitchUSBEndpoint::~SwitchUSBEndpoint() { - Close(); if (m_buffer != nullptr) { free(m_buffer); diff --git a/source/ControllerSwitch/SwitchUSBInterface.cpp b/source/ControllerSwitch/SwitchUSBInterface.cpp index f83d8d7..3ff90f7 100644 --- a/source/ControllerSwitch/SwitchUSBInterface.cpp +++ b/source/ControllerSwitch/SwitchUSBInterface.cpp @@ -10,7 +10,6 @@ SwitchUSBInterface::SwitchUSBInterface(UsbHsInterface &interface) SwitchUSBInterface::~SwitchUSBInterface() { - Close(); } Result SwitchUSBInterface::Open()