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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent e2e89f9 commit 0f2ecc3

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
@@ -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)