diff --git a/os/src/drivers/sd_card/omap4/mmchs.h b/os/src/drivers/sd_card/omap4/mmchs.h index fba980bc4d..97ac6d70a1 100644 --- a/os/src/drivers/sd_card/omap4/mmchs.h +++ b/os/src/drivers/sd_card/omap4/mmchs.h @@ -818,7 +818,7 @@ struct Omap4_hsmmc_controller : private Mmchs, public Sd_card::Host_controller bool result = false; /* wait until command is completed, return false on timeout */ - for (unsigned long i; i < 1000*1000; i++) { + for (unsigned long i = 0; i < 1000*1000; i++) { Stat::access_t const stat = read(); if (Stat::Erri::get(stat)) { PWRN("SD command error");