[U-Boot] [PATCH 2/2] ddr: altera: Repair uninited variable
Marek Vasut
marex at denx.de
Wed Aug 19 00:06:39 CEST 2015
On Tuesday, August 18, 2015 at 10:14:17 PM, Dinh Nguyen wrote:
> On 8/10/15 5:59 PM, Marek Vasut wrote:
> > Fix the following problem:
> > drivers/ddr/altera/sequencer.c: In function 'sdram_calibration_full':
> > drivers/ddr/altera/sequencer.c:1943:25: warning: 'found_failing_read' may
> > be used uninitialized in this function [-Wmaybe-uninitialized]
> >
> > if (found_passing_read && found_failing_read)
> >
> > ^
> >
> > drivers/ddr/altera/sequencer.c:1803:26: note: 'found_failing_read' was
> > declared here
> >
> > u32 found_passing_read, found_failing_read, initial_failing_dtap;
> >
> > ^
> >
> > Signed-off-by: Marek Vasut <marex at denx.de>
> > ---
> >
> > drivers/ddr/altera/sequencer.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Acked-by: Dinh Nguyen <dinguyen at opensource.altera.com>
Applied to u-boot-socfpga/master, thanks!
Best regards,
Marek Vasut
More information about the U-Boot
mailing list