Linux SPI subsystem development
 help / color / mirror / Atom feed
* [PATCH] spi: spi: Remove unnecessary ‘0’ values from status
@ 2024-07-08  4:14 Li zeming
  2024-07-08 14:25 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Li zeming @ 2024-07-08  4:14 UTC (permalink / raw)
  To: broonie; +Cc: linux-spi, linux-kernel, Li zeming

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

Signed-off-by: Li zeming <zeming@nfschina.com>
---
 drivers/spi/spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index bb731ab697a8..b1d85036d384 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -3925,7 +3925,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
-- 
2.18.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-07-08 14:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-08  4:14 [PATCH] spi: spi: Remove unnecessary ‘0’ values from status Li zeming
2024-07-08 14:25 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox