aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-01-13 09:57:03 -0500
committerMark Brown <broonie@kernel.org>2017-01-17 13:35:06 -0500
commit6ceb3b27b1edd1112f1879cc1f149d39a3da2dc2 (patch)
treef6c5aac1d545e2929aa6114551d51b4abe187ea3
parentfafd67940774733fa97f4b09412aea6981b82e0a (diff)
spi/topcliff-pch: Delete an unnecessary return statement in two functions
The script "checkpatch.pl" pointed information out like the following. WARNING: void function return statements are not generally useful Thus remove such statements here. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--drivers/spi/spi-topcliff-pch.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi-topcliff-pch.c b/drivers/spi/spi-topcliff-pch.c
index fcb991034c3d..250452a6eead 100644
--- a/drivers/spi/spi-topcliff-pch.c
+++ b/drivers/spi/spi-topcliff-pch.c
@@ -915,7 +915,6 @@ static void pch_spi_release_dma(struct pch_spi_data *data)
915 dma_release_channel(dma->chan_rx); 915 dma_release_channel(dma->chan_rx);
916 dma->chan_rx = NULL; 916 dma->chan_rx = NULL;
917 } 917 }
918 return;
919} 918}
920 919
921static void pch_spi_handle_dma(struct pch_spi_data *data, int *bpw) 920static void pch_spi_handle_dma(struct pch_spi_data *data, int *bpw)
@@ -1292,7 +1291,6 @@ static void pch_free_dma_buf(struct pch_spi_board_data *board_dat,
1292 if (dma->rx_buf_dma) 1291 if (dma->rx_buf_dma)
1293 dma_free_coherent(&board_dat->pdev->dev, PCH_BUF_SIZE, 1292 dma_free_coherent(&board_dat->pdev->dev, PCH_BUF_SIZE,
1294 dma->rx_buf_virt, dma->rx_buf_dma); 1293 dma->rx_buf_virt, dma->rx_buf_dma);
1295 return;
1296} 1294}
1297 1295
1298static void pch_alloc_dma_buf(struct pch_spi_board_data *board_dat, 1296static void pch_alloc_dma_buf(struct pch_spi_board_data *board_dat,