spi: spi-mux: Fix coverity issue, unchecked return value

[ Upstream commit 5a5fc308418aca275a898d638bc38c093d101855 ]

The return value of spi_setup() is not captured within
spi_mux_select() and it is assumed to be always success.

CID: 1638374

Signed-off-by: Sergio Perez Gonzalez <sperezglz@gmail.com>
Link: https://patch.msgid.link/20250316054651.13242-1-sperezglz@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Sergio Perez Gonzalez
2025-03-15 23:46:06 -06:00
committed by Greg Kroah-Hartman
parent b35ccfdc85
commit 0076b0423b

View File

@@ -68,9 +68,7 @@ static int spi_mux_select(struct spi_device *spi)
priv->current_cs = spi_get_chipselect(spi, 0);
spi_setup(priv->spi);
return 0;
return spi_setup(priv->spi);
}
static int spi_mux_setup(struct spi_device *spi)