refractor
- remove unnecessary assign next pointer of asyn/period head in hcd_controller_init
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user