mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 16:44:58 +02:00
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:
parent
e2e89f9630
commit
0f2ecc3f61
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user