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
> 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
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,
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,
4 matches
Mail list logo