summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorruiqian <[email protected]>2017-04-19 19:43:40 +0800
committerGitHub <[email protected]>2017-04-19 19:43:40 +0800
commit24185f472121843d0bddaa684b6ab47d2a6bcbcc (patch)
tree363ec35b6af99877e865b8ced85274fc6b40b713 /components
parent9804753614e615de8dfc98501352c500af711e3b (diff)
Update sdio.c
Fix a bug in function sdio_unregister_driver
Diffstat (limited to 'components')
-rw-r--r--components/drivers/sdio/sdio.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/components/drivers/sdio/sdio.c b/components/drivers/sdio/sdio.c
index 9f387f0f6e..ee77b7adbb 100644
--- a/components/drivers/sdio/sdio.c
+++ b/components/drivers/sdio/sdio.c
@@ -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);