diff options
| author | Evlers <[email protected]> | 2024-07-05 09:37:34 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2024-07-05 10:51:17 +0800 |
| commit | 755cde372cb224bba0945e3834b4cda1ead18681 (patch) | |
| tree | 23752636c9d01490fba8fa31933f4f8bc78fec3e /components/drivers/sdio | |
| parent | 7d7993f940aa2708eb7f0074140e6e8db99be92c (diff) | |
fix a bug that read members in non-existent functions
Diffstat (limited to 'components/drivers/sdio')
| -rw-r--r-- | components/drivers/sdio/sdio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/drivers/sdio/sdio.c b/components/drivers/sdio/sdio.c index bc1951792f..9fa3f539cd 100644 --- a/components/drivers/sdio/sdio.c +++ b/components/drivers/sdio/sdio.c @@ -6,7 +6,8 @@ * Change Logs: * Date Author Notes * 2012-01-13 weety first version - * 2024-04-04 Evlers fix an issue where repeated remove of card resulted in assertions + * 2024-07-04 Evlers fix an issue where repeated remove of card resulted in assertions + * 2024-07-05 Evlers fix a bug that read members in non-existent functions */ #include <drivers/mmcsd_core.h> @@ -1030,8 +1031,7 @@ static void sdio_irq_thread(void *param) struct rt_sdio_function *func = card->sdio_function[i]; if (!func) { - mmcsd_dbg("pending IRQ for " - "non-existant function %d\n", func->num); + mmcsd_dbg("pending IRQ for non-existant function\n"); goto out; } else if (func->irq_handler) |
