summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-11-03 14:58:29 +0100
committerMark Brown <broonie@kernel.org>2017-11-03 18:21:34 +0100
commit6ae6678344af52cf1c05475ff3ec2f43b8b532ef (patch)
tree48204c83e6f6911f7e3cd73533e9b5d50a839d22 /drivers/spi
parentspi: sh-msiof: Use of_device_get_match_data() helper (diff)
downloadlinux-6ae6678344af52cf1c05475ff3ec2f43b8b532ef.tar.xz
linux-6ae6678344af52cf1c05475ff3ec2f43b8b532ef.zip
spi: sh-msiof: remove redundant pointer dev
The pointer dev is assigned but never read, hence it is redundant and can be removed. Cleans up clang warning: drivers/spi/spi-sh-msiof.c:1198:2: warning: Value stored to 'dev' is never read Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-sh-msiof.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c
index 2c5ea4c57508..66043611e86d 100644
--- a/drivers/spi/spi-sh-msiof.c
+++ b/drivers/spi/spi-sh-msiof.c
@@ -1190,12 +1190,10 @@ free_tx_chan:
static void sh_msiof_release_dma(struct sh_msiof_spi_priv *p)
{
struct spi_master *master = p->master;
- struct device *dev;
if (!master->dma_tx)
return;
- dev = &p->pdev->dev;
dma_unmap_single(master->dma_rx->device->dev, p->rx_dma_addr,
PAGE_SIZE, DMA_FROM_DEVICE);
dma_unmap_single(master->dma_tx->device->dev, p->tx_dma_addr,