summaryrefslogtreecommitdiffstats
path: root/heimdall/source
diff options
context:
space:
mode:
Diffstat (limited to 'heimdall/source')
-rw-r--r--heimdall/source/BridgeManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/heimdall/source/BridgeManager.cpp b/heimdall/source/BridgeManager.cpp
index e954f3b..6546541 100644
--- a/heimdall/source/BridgeManager.cpp
+++ b/heimdall/source/BridgeManager.cpp
@@ -231,7 +231,7 @@ int BridgeManager::FindDeviceInterface(void)
libusb_free_config_descriptor(configDescriptor);
- if (result != LIBUSB_SUCCESS)
+ if (interfaceIndex < 0)
{
Interface::PrintError("Failed to find correct interface configuration\n");
return (BridgeManager::kInitialiseFailed);