RE: [PATCH] spi: fsl-lpspi: Pre-initialize ret in fsl_lpspi_transfer_one_msg()

2016-12-15 Thread Pandy Gao
linux-m68k.org> > Subject: [PATCH] spi: fsl-lpspi: Pre-initialize ret in > fsl_lpspi_transfer_one_msg() > > With gcc 4.1.2: > > drivers/spi/spi-fsl-lpspi.c: In function ‘fsl_lpspi_transfer_one_msg’: > drivers/spi/spi-fsl-lpspi.c:369: warning: ‘ret’ may be used unin

RE: [PATCH] spi: fsl-lpspi: Pre-initialize ret in fsl_lpspi_transfer_one_msg()

2016-12-15 Thread Pandy Gao
> From: Geert Uytterhoeven [mailto:ge...@linux-m68k.org] > Sent: Wednesday, December 14, 2016 7:21 PM > To: Mark Brown ; Pandy Gao > > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Geert > Uytterhoeven > Subject: [PATCH] spi: fsl-lpsp

[PATCH] spi: fsl-lpspi: Pre-initialize ret in fsl_lpspi_transfer_one_msg()

2016-12-14 Thread Geert Uytterhoeven
With gcc 4.1.2: drivers/spi/spi-fsl-lpspi.c: In function ‘fsl_lpspi_transfer_one_msg’: drivers/spi/spi-fsl-lpspi.c:369: warning: ‘ret’ may be used uninitialized in this function If the message contains no transfers, the function will set the message's status to an uninitialized value,

[PATCH] spi: fsl-lpspi: Pre-initialize ret in fsl_lpspi_transfer_one_msg()

2016-12-14 Thread Geert Uytterhoeven
With gcc 4.1.2: drivers/spi/spi-fsl-lpspi.c: In function ‘fsl_lpspi_transfer_one_msg’: drivers/spi/spi-fsl-lpspi.c:369: warning: ‘ret’ may be used uninitialized in this function If the message contains no transfers, the function will set the message's status to an uninitialized value,