summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-03-06 11:24:20 +0700
committerhathach <[email protected]>2013-03-06 11:24:20 +0700
commit97a4a41b8266a345624b77b20daba93c0b8949d5 (patch)
tree2812aa899cf1285ee5afbca0151079b121ad318c /tests
parentc2b9e1ef8379de204dccf532020c88e3ce07a281 (diff)
refractor
- remove unnecessary assign next pointer of asyn/period head in hcd_controller_init
Diffstat (limited to 'tests')
-rw-r--r--tests/test/host/ehci/test_ehci_init.c4
-rw-r--r--tests/test/host/ehci/test_ehci_pipe.c2
2 files changed, 2 insertions, 4 deletions
diff --git a/tests/test/host/ehci/test_ehci_init.c b/tests/test/host/ehci/test_ehci_init.c
index 146c75b8e..546853d45 100644
--- a/tests/test/host/ehci/test_ehci_init.c
+++ b/tests/test/host/ehci/test_ehci_init.c
@@ -122,8 +122,6 @@ void test_hcd_init_async_list(void)
TEST_ASSERT_FALSE(async_head->next.terminate);
TEST_ASSERT(async_head->head_list_flag);
- TEST_ASSERT(async_head->qtd_overlay.next.terminate);
- TEST_ASSERT(async_head->qtd_overlay.alternate.terminate);
TEST_ASSERT(async_head->qtd_overlay.halted);
}
}
@@ -150,8 +148,6 @@ void test_hcd_init_period_list(void)
TEST_ASSERT(period_head->smask)
TEST_ASSERT_TRUE(period_head->next.terminate);
- TEST_ASSERT(period_head->qtd_overlay.next.terminate);
- TEST_ASSERT(period_head->qtd_overlay.alternate.terminate);
TEST_ASSERT(period_head->qtd_overlay.halted);
}
#endif
diff --git a/tests/test/host/ehci/test_ehci_pipe.c b/tests/test/host/ehci/test_ehci_pipe.c
index 42694d45b..0625cffd4 100644
--- a/tests/test/host/ehci/test_ehci_pipe.c
+++ b/tests/test/host/ehci/test_ehci_pipe.c
@@ -114,6 +114,8 @@ void verify_open_qhd(ehci_qhd_t *p_qhd)
TEST_ASSERT_EQUAL(hub_addr, p_qhd->hub_address);
TEST_ASSERT_EQUAL(hub_port, p_qhd->hub_port);
TEST_ASSERT_EQUAL(1, p_qhd->mult);
+
+ TEST_ASSERT_FALSE(p_qhd->qtd_overlay.halted);
TEST_ASSERT(p_qhd->qtd_overlay.next.terminate);
TEST_ASSERT(p_qhd->qtd_overlay.alternate.terminate);