This patch is to fix the following build warning:
kernel-source/drivers/spi/spi-fsl-dspi.c:937:15:warning: unused
variable 'val' [-Wunused-variable]
937 | unsigned int val;
The use of variable val has been dropped, so delete it to fix this warning.
Signed-off-by: Zhantao Tang <[email protected]>
---
drivers/spi/spi-fsl-dspi.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c
index 21ce842083dc..d8fc6f16c542 100644
--- a/drivers/spi/spi-fsl-dspi.c
+++ b/drivers/spi/spi-fsl-dspi.c
@@ -934,7 +934,6 @@ static int dspi_transfer_one_message(struct spi_controller
*ctlr,
struct spi_device *spi = message->spi;
struct spi_transfer *transfer;
int status = 0;
- unsigned int val;
message->actual_length = 0;
--
2.25.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9967):
https://lists.yoctoproject.org/g/linux-yocto/message/9967
Mute This Topic: https://lists.yoctoproject.org/mt/83576785/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-