Commit 0f2ecc3f authored by Li zeming's avatar Li zeming Committed by Mark Brown

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

rc is assigned first, so it does not need to initialize the assignment.
Signed-off-by: default avatarLi zeming <zeming@nfschina.com>
Link: https://patch.msgid.link/20240708035320.14241-1-zeming@nfschina.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent e2e89f96
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment