From 6b276d09bffb8f544a54aab717eac904bd34c5b2 Mon Sep 17 00:00:00 2001 From: hathach Date: Fri, 22 Mar 2013 17:45:03 +0700 Subject: [PATCH] house keeping for pipe API test code --- tests/test/host/ehci/test_pipe_bulk_open.c | 4 ---- tests/test/host/ehci/test_pipe_bulk_xfer.c | 1 - tests/test/host/ehci/test_pipe_control_open.c | 4 ---- tests/test/host/ehci/test_pipe_control_xfer.c | 1 - tests/test/host/ehci/test_pipe_interrupt_open.c | 4 ---- tests/test/host/ehci/test_pipe_isochronous_open.c | 4 ---- 6 files changed, 18 deletions(-) diff --git a/tests/test/host/ehci/test_pipe_bulk_open.c b/tests/test/host/ehci/test_pipe_bulk_open.c index 250a84c25..b6c11d76e 100644 --- a/tests/test/host/ehci/test_pipe_bulk_open.c +++ b/tests/test/host/ehci/test_pipe_bulk_open.c @@ -61,11 +61,7 @@ ehci_qhd_t *async_head; //--------------------------------------------------------------------+ void setUp(void) { - memclr_(&lpc_usb0, sizeof(LPC_USB0_Type)); - memclr_(&lpc_usb1, sizeof(LPC_USB1_Type)); - memclr_(usbh_device_info_pool, sizeof(usbh_device_info_t)*(TUSB_CFG_HOST_DEVICE_MAX+1)); - memclr_(&ehci_data, sizeof(ehci_data_t)); hcd_init(); diff --git a/tests/test/host/ehci/test_pipe_bulk_xfer.c b/tests/test/host/ehci/test_pipe_bulk_xfer.c index 1f6221abf..327dbdfc4 100644 --- a/tests/test/host/ehci/test_pipe_bulk_xfer.c +++ b/tests/test/host/ehci/test_pipe_bulk_xfer.c @@ -80,7 +80,6 @@ void setUp(void) memclr_(&lpc_usb1, sizeof(LPC_USB1_Type)); memclr_(usbh_device_info_pool, sizeof(usbh_device_info_t)*(TUSB_CFG_HOST_DEVICE_MAX+1)); - memclr_(&ehci_data, sizeof(ehci_data_t)); memclr_(xfer_data, sizeof(xfer_data)); hcd_init(); diff --git a/tests/test/host/ehci/test_pipe_control_open.c b/tests/test/host/ehci/test_pipe_control_open.c index 815c3c81a..27df5673b 100644 --- a/tests/test/host/ehci/test_pipe_control_open.c +++ b/tests/test/host/ehci/test_pipe_control_open.c @@ -63,11 +63,7 @@ ehci_qhd_t *p_control_qhd; //--------------------------------------------------------------------+ void setUp(void) { - memclr_(&lpc_usb0, sizeof(LPC_USB0_Type)); - memclr_(&lpc_usb1, sizeof(LPC_USB1_Type)); - memclr_(usbh_device_info_pool, sizeof(usbh_device_info_t)*(TUSB_CFG_HOST_DEVICE_MAX+1)); - memclr_(&ehci_data, sizeof(ehci_data_t)); hcd_init(); diff --git a/tests/test/host/ehci/test_pipe_control_xfer.c b/tests/test/host/ehci/test_pipe_control_xfer.c index 666637f84..583a6d313 100644 --- a/tests/test/host/ehci/test_pipe_control_xfer.c +++ b/tests/test/host/ehci/test_pipe_control_xfer.c @@ -81,7 +81,6 @@ void setUp(void) memclr_(&lpc_usb1, sizeof(LPC_USB1_Type)); memclr_(usbh_device_info_pool, sizeof(usbh_device_info_t)*(TUSB_CFG_HOST_DEVICE_MAX+1)); - memclr_(&ehci_data, sizeof(ehci_data_t)); memclr_(xfer_data, sizeof(xfer_data)); hcd_init(); diff --git a/tests/test/host/ehci/test_pipe_interrupt_open.c b/tests/test/host/ehci/test_pipe_interrupt_open.c index eb8734464..62da7d7b3 100644 --- a/tests/test/host/ehci/test_pipe_interrupt_open.c +++ b/tests/test/host/ehci/test_pipe_interrupt_open.c @@ -61,11 +61,7 @@ ehci_qhd_t *period_head; //--------------------------------------------------------------------+ void setUp(void) { - memclr_(&lpc_usb0, sizeof(LPC_USB0_Type)); - memclr_(&lpc_usb1, sizeof(LPC_USB1_Type)); - memclr_(usbh_device_info_pool, sizeof(usbh_device_info_t)*(TUSB_CFG_HOST_DEVICE_MAX+1)); - memclr_(&ehci_data, sizeof(ehci_data_t)); hcd_init(); diff --git a/tests/test/host/ehci/test_pipe_isochronous_open.c b/tests/test/host/ehci/test_pipe_isochronous_open.c index d9b739d52..1b075224d 100644 --- a/tests/test/host/ehci/test_pipe_isochronous_open.c +++ b/tests/test/host/ehci/test_pipe_isochronous_open.c @@ -60,11 +60,7 @@ ehci_qhd_t *period_head; //--------------------------------------------------------------------+ void setUp(void) { - memclr_(&lpc_usb0, sizeof(LPC_USB0_Type)); - memclr_(&lpc_usb1, sizeof(LPC_USB1_Type)); - memclr_(usbh_device_info_pool, sizeof(usbh_device_info_t)*(TUSB_CFG_HOST_DEVICE_MAX+1)); - memclr_(&ehci_data, sizeof(ehci_data_t)); hcd_init();