mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 12:21:22 -05:00
spi: spi-mux: Fix coverity issue, unchecked return value
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>
This commit is contained in:
committed by
Mark Brown
parent
3c9403f150
commit
5a5fc30841
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user