spi: spi: Remove unnecessary ‘0’ values from status

status is assigned first, so it does not need to initialize the assignment.

Signed-off-by: Li zeming <zeming@nfschina.com>
Link: https://patch.msgid.link/20240708041411.14424-1-zeming@nfschina.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Li zeming 2024-07-08 12:14:11 +08:00 committed by Mark Brown
parent 0f2ecc3f61
commit 3bca1a3808
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -3901,7 +3901,7 @@ static int spi_set_cs_timing(struct spi_device *spi)
int spi_setup(struct spi_device *spi)
{
unsigned bad_bits, ugly_bits;
int status = 0;
int status;
/*
* Check mode to prevent that any two of DUAL, QUAD and NO_MOSI/MISO