From: Shobhit Verma Date: Fri, 17 Nov 2023 05:42:37 +0000 (+0530) Subject: [ITC][usb-host][Non-ACR] Removed unused variables X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=724750704fa345f14f2936b79197edf4c2034882;p=test%2Ftct%2Fnative%2Fapi.git [ITC][usb-host][Non-ACR] Removed unused variables Change-Id: Id83d85837007f1a2356d4a12f4b6a6ecd70af6a1 Signed-off-by: Shobhit Verma --- diff --git a/src/itc/usb-host/ITs-usb-host.c b/src/itc/usb-host/ITs-usb-host.c index d95c7c9f3..63b362af3 100755 --- a/src/itc/usb-host/ITs-usb-host.c +++ b/src/itc/usb-host/ITs-usb-host.c @@ -20,7 +20,7 @@ #define TEST_ID_PRODUCT 0x104 #define TEST_DATA "Quick brown fox jumps over a lazy dog" #define DATA_SIZE 9 -static unsigned char transfer_buffer[sizeof(TEST_DATA)]; + //& set: Usbhost /** @addtogroup itc-usbhost @@ -1010,7 +1010,6 @@ int ITc_usb_host_device_set_config_p(void) int nRet; usb_host_device_h hHostDevice = NULL; usb_host_config_h hConfigHandle; - int numInterface = -1; nRet = usb_host_device_open_with_vid_pid(g_CtxHandle, TEST_ID_VENDOR, TEST_ID_PRODUCT, &hHostDevice); PRINT_RESULT(USB_HOST_ERROR_NONE, nRet, "usb_host_device_open_with_vid_pid", UsbHostGetError(nRet)); @@ -1435,7 +1434,6 @@ int ITc_usb_host_interface_get_endpoint_p(void) usb_host_device_h hHostDevice = NULL; usb_host_config_h hConfigHandle = NULL; usb_host_interface_h hInterfaceHandle = NULL; - int interfaceNumber = 0; usb_host_endpoint_h usbHostInterfaceEndPoint = NULL; usb_host_context_h CtxHandle = NULL; @@ -1582,7 +1580,7 @@ int ITc_usb_host_interface_get_num_endpoints_p(void) //& purpose: Set usb host interface altsetting //& type: auto /** -* @testcase ITc_usb_host_interface_get_endpoint_p +* @testcase ITc_usb_host_interface_set_altsetting_p * @since_tizen 5.0 * @author SRID(manoj.g2) * @reviewer SRID(shobhit.v) @@ -1602,7 +1600,6 @@ int ITc_usb_host_interface_set_altsetting_p(void) usb_host_config_h hConfigHandle = NULL; usb_host_interface_h hInterfaceHandle = NULL; int interfaceNumber = 0; - usb_host_endpoint_h usbHostInterfaceEndPoint = NULL; nRet = usb_host_device_open_with_vid_pid(g_CtxHandle, TEST_ID_VENDOR, TEST_ID_PRODUCT, &hHostDevice); PRINT_RESULT(USB_HOST_ERROR_NONE, nRet, "usb_host_device_open_with_vid_pid", UsbHostGetError(nRet)); @@ -1787,7 +1784,6 @@ int ITc_usb_host_endpoint_get_transfer_type_p(void) usb_host_device_h hHostDevice = NULL; usb_host_config_h hConfigHandle = NULL; usb_host_interface_h hInterfaceHandle = NULL; - int numOdEndPoints = 0; usb_host_endpoint_h usbHostInterfaceEndPoint = NULL; usb_host_transfer_type_e eTransferType = -1; @@ -1842,7 +1838,6 @@ int ITc_usb_host_endpoint_get_usage_type_p(void) usb_host_device_h hHostDevice = NULL; usb_host_config_h hConfigHandle = NULL; usb_host_interface_h hInterfaceHandle = NULL; - int numOdEndPoints = 0; usb_host_endpoint_h usbHostInterfaceEndPoint = NULL; usb_host_usage_type_e eUsageType = -1; @@ -1897,7 +1892,6 @@ int ITc_usb_host_endpoint_get_synch_type_p(void) usb_host_device_h hHostDevice = NULL; usb_host_config_h hConfigHandle = NULL; usb_host_interface_h hInterfaceHandle = NULL; - int numOdEndPoints = 0; usb_host_endpoint_h usbHostInterfaceEndPoint = NULL; usb_host_iso_sync_type_e eSynchType = -1; @@ -1954,7 +1948,6 @@ int ITc_usb_host_endpoint_get_max_packet_size_p(void) usb_host_interface_h hInterfaceHandle = NULL; int maxPacketSize = 0; usb_host_endpoint_h usbHostInterfaceEndPoint = NULL; - usb_host_endpoint_direction_e eEndPointDir = -1; nRet = usb_host_device_open_with_vid_pid(g_CtxHandle, TEST_ID_VENDOR, TEST_ID_PRODUCT, &hHostDevice); PRINT_RESULT(USB_HOST_ERROR_NONE, nRet, "usb_host_device_open_with_vid_pid", UsbHostGetError(nRet)); @@ -2007,7 +2000,6 @@ int ITc_usb_host_endpoint_get_interval_p(void) usb_host_device_h hHostDevice = NULL; usb_host_config_h hConfigHandle; usb_host_interface_h hInterfaceHandle = NULL; - int numOdEndPoints = 0; usb_host_endpoint_h usbHostInterfaceEndPoint = NULL; int endpointInterval = 0; @@ -2662,7 +2654,6 @@ int ITc_usb_host_transfer_get_type_p(void) usb_host_config_h hHostConfig = NULL; usb_host_endpoint_h hHostEndPoint = NULL; usb_host_transfer_type_e hHosttype; - int status; nRet = usb_host_device_open_with_vid_pid(g_CtxHandle, TEST_ID_VENDOR, TEST_ID_PRODUCT, &hHostDevice); PRINT_RESULT(USB_HOST_ERROR_NONE, nRet, "usb_host_device_open_with_vid_pid", UsbHostGetError(nRet)); @@ -2719,8 +2710,6 @@ int ITc_usb_host_transfer_set_callback_p(void) usb_host_device_h hHostDevice = NULL; usb_host_config_h hHostConfig = NULL; usb_host_endpoint_h hHostEndPoint = NULL; - usb_host_transfer_type_e hHosttype; - int status; nRet = usb_host_device_open_with_vid_pid(g_CtxHandle, TEST_ID_VENDOR, TEST_ID_PRODUCT, &hHostDevice); PRINT_RESULT(USB_HOST_ERROR_NONE, nRet, "usb_host_device_open_with_vid_pid", UsbHostGetError(nRet)); @@ -2777,7 +2766,6 @@ int ITc_usb_host_transfer_set_get_num_iso_packets_p(void) usb_host_device_h hHostDevice = NULL; usb_host_config_h hHostConfig = NULL; usb_host_endpoint_h hHostEndPoint = NULL; - usb_host_transfer_type_e hHosttype; unsigned int num; nRet = usb_host_device_open_with_vid_pid(g_CtxHandle, TEST_ID_VENDOR, TEST_ID_PRODUCT, &hHostDevice);