Skip to content

Commit 5a5fc30

Browse files
sperezglzbroonie
authored andcommitted
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>
1 parent 3c9403f commit 5a5fc30

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/spi/spi-mux.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ static int spi_mux_select(struct spi_device *spi)
6868

6969
priv->current_cs = spi_get_chipselect(spi, 0);
7070

71-
spi_setup(priv->spi);
72-
73-
return 0;
71+
return spi_setup(priv->spi);
7472
}
7573

7674
static int spi_mux_setup(struct spi_device *spi)

0 commit comments

Comments
 (0)