[ITC][usb-host][Non-ACR] Removed unused variables 08/301508/2
authorShobhit Verma <shobhit.v@samsung.com>
Fri, 17 Nov 2023 05:42:37 +0000 (11:12 +0530)
committerShobhit Verma <shobhit.v@samsung.com>
Fri, 17 Nov 2023 06:11:05 +0000 (11:41 +0530)
Change-Id: Id83d85837007f1a2356d4a12f4b6a6ecd70af6a1
Signed-off-by: Shobhit Verma <shobhit.v@samsung.com>
src/itc/usb-host/ITs-usb-host.c

index d95c7c9f344256c8efe15191e230f447551a4108..63b362af383e83531488ca4155ac83020469e810 100755 (executable)
@@ -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);