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

rc 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/20240708035320.14241-1-zeming@nfschina.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Li zeming 2024-07-08 11:53:20 +08:00 committed by Mark Brown
parent e2e89f9630
commit 0f2ecc3f61
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -2570,7 +2570,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);