summaryrefslogtreecommitdiffstats
path: root/core/libdivecomputer.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/libdivecomputer.c')
-rw-r--r--core/libdivecomputer.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/core/libdivecomputer.c b/core/libdivecomputer.c
index 64b07961d..2b535dfaf 100644
--- a/core/libdivecomputer.c
+++ b/core/libdivecomputer.c
@@ -1328,11 +1328,8 @@ dc_status_t divecomputer_device_open(device_data_t *data)
if (transports & DC_TRANSPORT_SERIAL) {
#ifdef SERIAL_FTDI
- if (!strcmp(data->devname, "ftdi")) {
- rc = ftdi_open(&data->iostream, context);
- if (rc == DC_STATUS_SUCCESS)
- return rc;
- }
+ if (!strcmp(data->devname, "ftdi"))
+ return ftdi_open(&data->iostream, context);
#endif
rc = dc_serial_open(&data->iostream, context, data->devname);
if (rc == DC_STATUS_SUCCESS)