aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsophia.papagiannaki <papagiannaki@stettbacher.ch>2020-07-29 14:08:26 +0200
committersophia.papagiannaki <papagiannaki@stettbacher.ch>2020-07-29 14:08:26 +0200
commitcd386dac7875843caa54be2190cf6dd4923db50a (patch)
tree29c79b7338eb329cf4e3bebd597cc2b32fad671f
parentModified log messages in o3000_upgrade.c (diff)
downloado3000-driver-cd386dac7875843caa54be2190cf6dd4923db50a.tar.gz
o3000-driver-cd386dac7875843caa54be2190cf6dd4923db50a.zip
Deleted comment lines.
-rw-r--r--o3000.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/o3000.c b/o3000.c
index 12c5ff1..cd4a928 100644
--- a/o3000.c
+++ b/o3000.c
@@ -882,12 +882,6 @@ static int get_num_open_sessions(void) {
}
}
return num_sessions;
-
-// if (i < MAX_NUM_SESSION) {
-// printf("%s: Session %d is still open.\n", __func__, i);
-// return O3000_ERROR_SESSION_STILL_OPEN;
-// }
-// return 0;
}
/**
@@ -951,7 +945,7 @@ int __stdcall o3000_disconnect(int id) {
o3000_log(session, O3000_LOG_WARNING, "%s: driver is not connected!\n", __func__);
return O3000_ERROR_DRV_NOT_CONNECTED;
}
-
+
o3000_log(session, O3000_LOG_DEBUG, "%s: disconnect USB device (release interface)\n", __func__);
session->cleanup_transfers = TRUE;
session->disconnect_dev = TRUE;
@@ -965,6 +959,7 @@ int __stdcall o3000_disconnect(int id) {
else if(retval != 0) {
o3000_log(session, O3000_LOG_ERROR, "%s: releasing interface failed (code %d)\n", __func__, retval);
}
+
return retval;
}
@@ -1092,7 +1087,7 @@ int __stdcall o3000_connect(int id, int device_nr, char *config_msg, int config_
o3000_log(session, O3000_LOG_ERROR, "%s: sending configuration string failed (code %d)\n", __func__, ret);
}
}
-
+
/*
* Finally enter main-loop
*/