mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08: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