alistair23-linux/drivers/mmc
Geert Uytterhoeven 62d494ca27 mmc: mediatek: Preinitialize delay_phase in get_best_delay()
drivers/mmc/host/mtk-sd.c: In function ‘get_best_delay’:
drivers/mmc/host/mtk-sd.c:1284: warning: ‘delay_phase.start’ is used uninitialized in this function
drivers/mmc/host/mtk-sd.c:1284: warning: ‘delay_phase.maxlen’ is used uninitialized in this function

If delay is zero, these fields are indeed not initialized.
Let the compiler preinitialize the whole struct to fix this.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2015-11-09 13:16:44 +01:00
..
card mmc: block: copy resp[] data on err for MMC_IOC_MULTI_CMD 2015-10-26 16:00:03 +01:00
core mmc: mmc: Improve reliability of mmc_select_hs400() 2015-11-09 13:16:32 +01:00
host mmc: mediatek: Preinitialize delay_phase in get_best_delay() 2015-11-09 13:16:44 +01:00
Kconfig
Makefile