]>
Commit | Line | Data |
---|---|---|
ea78042b SL |
1 | From de161fe93de0b2e03c0bcca72523047e61185000 Mon Sep 17 00:00:00 2001 |
2 | From: Sasha Levin <sashal@kernel.org> | |
3 | Date: Wed, 7 Feb 2024 12:04:22 +0000 | |
4 | Subject: spi: s3c64xx: remove else after return | |
5 | ||
6 | From: Tudor Ambarus <tudor.ambarus@linaro.org> | |
7 | ||
8 | [ Upstream commit 9d47e411f4d636519a8d26587928d34cf52c0c1f ] | |
9 | ||
10 | Else case is not needed after a return, remove it. | |
11 | ||
12 | Reviewed-by: Andi Shyti <andi.shyti@kernel.org> | |
13 | Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org> | |
14 | Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org> | |
15 | Link: https://lore.kernel.org/r/20240207120431.2766269-9-tudor.ambarus@linaro.org | |
16 | Signed-off-by: Mark Brown <broonie@kernel.org> | |
17 | Stable-dep-of: a3d3eab627bb ("spi: s3c64xx: Use DMA mode from fifo size") | |
18 | Signed-off-by: Sasha Levin <sashal@kernel.org> | |
19 | --- | |
20 | drivers/spi/spi-s3c64xx.c | 6 ++---- | |
21 | 1 file changed, 2 insertions(+), 4 deletions(-) | |
22 | ||
23 | diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c | |
24 | index 1e519b1537e71..29e99410c9716 100644 | |
25 | --- a/drivers/spi/spi-s3c64xx.c | |
26 | +++ b/drivers/spi/spi-s3c64xx.c | |
27 | @@ -406,12 +406,10 @@ static bool s3c64xx_spi_can_dma(struct spi_controller *host, | |
28 | { | |
29 | struct s3c64xx_spi_driver_data *sdd = spi_controller_get_devdata(host); | |
30 | ||
31 | - if (sdd->rx_dma.ch && sdd->tx_dma.ch) { | |
32 | + if (sdd->rx_dma.ch && sdd->tx_dma.ch) | |
33 | return xfer->len > FIFO_DEPTH(sdd); | |
34 | - } else { | |
35 | - return false; | |
36 | - } | |
37 | ||
38 | + return false; | |
39 | } | |
40 | ||
41 | static int s3c64xx_enable_datapath(struct s3c64xx_spi_driver_data *sdd, | |
42 | -- | |
43 | 2.43.0 | |
44 |