diff mbox series

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

Message ID 20240708035320.14241-1-zeming@nfschina.com
State Accepted
Commit 0f2ecc3f6136a922f9d54499c80004bae6c42348
Headers show
Series spi: spi: Remove unnecessary ‘0’ values from rc | expand

Commit Message

Li zeming July 8, 2024, 3:53 a.m. UTC
rc 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 mbox series

Patch

diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index fc13fa192189..bb731ab697a8 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -2594,7 +2594,7 @@  struct spi_device *spi_new_ancillary_device(struct spi_device *spi,
 {
 	struct spi_controller *ctlr = spi->controller;
 	struct spi_device *ancillary;
-	int rc = 0;
+	int rc;
 
 	/* Alloc an spi_device */
 	ancillary = spi_alloc_device(ctlr);