diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 1da196bfcee4..82a2fe3d340e 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -3474,7 +3474,7 @@ static int __spi_validate_bits_per_word(struct spi_controller *ctlr, int spi_setup(struct spi_device *spi) { unsigned bad_bits, ugly_bits; - int status; + int status = 0; /* * Check mode to prevent that any two of DUAL, QUAD and NO_MOSI/MISO