Skip to content

Commit 0f2ecc3

Browse files
Li zemingbroonie
authored andcommitted
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>
1 parent e2e89f9 commit 0f2ecc3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/spi/spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2570,7 +2570,7 @@ struct spi_device *spi_new_ancillary_device(struct spi_device *spi,
25702570
{
25712571
struct spi_controller *ctlr = spi->controller;
25722572
struct spi_device *ancillary;
2573-
int rc = 0;
2573+
int rc;
25742574

25752575
/* Alloc an spi_device */
25762576
ancillary = spi_alloc_device(ctlr);

0 commit comments

Comments
 (0)