Update sdio.c

Fix a bug in function sdio_unregister_driver
This commit is contained in:
ruiqian 2017-04-19 19:43:40 +08:00 committed by GitHub
parent 9804753614
commit 24185f4721
1 changed files with 0 additions and 3 deletions

View File

@ -1347,9 +1347,6 @@ rt_int32_t sdio_unregister_driver(struct rt_sdio_driver *driver)
struct sdio_driver *sd = RT_NULL;
struct rt_mmcsd_card *card;
rt_list_insert_after(&sdio_drivers, &sd->list);
for (l = (&sdio_drivers)->next; l != &sdio_drivers; l = l->next)
{
sd = (struct sdio_driver *)rt_list_entry(l, struct sdio_driver, list);