Skip to content

Commit 3bca1a3

Browse files
Li zemingbroonie
authored andcommitted
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 0f2ecc3 commit 3bca1a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3901,7 +3901,7 @@ static int spi_set_cs_timing(struct spi_device *spi)
39013901
int spi_setup(struct spi_device *spi)
39023902
{
39033903
unsigned bad_bits, ugly_bits;
3904-
int status = 0;
3904+
int status;
39053905

39063906
/*
39073907
* Check mode to prevent that any two of DUAL, QUAD and NO_MOSI/MISO

0 commit comments

Comments
 (0)