refractor

- remove unnecessary assign next pointer of asyn/period head in hcd_controller_init
This commit is contained in:
hathach
2013-03-06 11:24:20 +07:00
parent c2b9e1ef83
commit 97a4a41b82
3 changed files with 20 additions and 26 deletions

View File

@@ -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

View File

@@ -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);