Commit 3bca1a38 authored by Li zeming's avatar Li zeming Committed by Mark Brown

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

status is assigned first, so it does not need to initialize the assignment.
Signed-off-by: default avatarLi zeming <zeming@nfschina.com>
Link: https://patch.msgid.link/20240708041411.14424-1-zeming@nfschina.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 0f2ecc3f
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment