From cd386dac7875843caa54be2190cf6dd4923db50a Mon Sep 17 00:00:00 2001 From: "sophia.papagiannaki" Date: Wed, 29 Jul 2020 14:08:26 +0200 Subject: Deleted comment lines. --- o3000.c | 11 +++-------- 1 file 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 */ -- cgit v1.2.1