Re: [U-Boot] [PATCH 2/7] spl: mmc: Explicitly init mmc struct

2015-12-06 Thread Simon Glass
Hi Sjoerd, On 4 December 2015 at 15:27, Sjoerd Simons wrote: > gcc fails to work out that the mmc variable will only ever be used if it > has been initialized by spl_mmc_get_device_index and throws the > following error: > > common/spl/spl_mmc.c: In function ‘spl_mmc_load_image’: > common/spl/spl

[U-Boot] [PATCH 2/7] spl: mmc: Explicitly init mmc struct

2015-12-04 Thread Sjoerd Simons
gcc fails to work out that the mmc variable will only ever be used if it has been initialized by spl_mmc_get_device_index and throws the following error: common/spl/spl_mmc.c: In function ‘spl_mmc_load_image’: common/spl/spl_mmc.c:31:24: warning: ‘mmc’ may be used uninitialized in this function [