From e509ef5c06179be111fbd96dd86cdaa5d5c1f098 Mon Sep 17 00:00:00 2001 From: Sampo Savolainen Date: Thu, 15 Jun 2006 20:55:54 +0000 Subject: [PATCH] Make the tranzport surface work even if the call to usb_set_configuration() fails git-svn-id: svn://localhost/ardour2/trunk@607 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/surfaces/tranzport/tranzport_control_protocol.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libs/surfaces/tranzport/tranzport_control_protocol.cc b/libs/surfaces/tranzport/tranzport_control_protocol.cc index 4fad413d24..0b08bd633e 100644 --- a/libs/surfaces/tranzport/tranzport_control_protocol.cc +++ b/libs/surfaces/tranzport/tranzport_control_protocol.cc @@ -395,10 +395,7 @@ TranzportControlProtocol::open_core (struct usb_device* dev) } if (usb_set_configuration (udev, 1) < 0) { - error << _("Tranzport: cannot configure USB interface") << endmsg; - usb_close (udev); - udev = 0; - return -1; + cerr << _("Tranzport: cannot configure USB interface") << endmsg; } return 0;