summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Engelmayer <cengelma@gmx.at>2014-02-08 19:02:23 +0100
committerMark Brown <broonie@linaro.org>2014-02-10 12:16:17 +0000
commit77c398f58c1fe57224c17f6d4360c7f74cc0e418 (patch)
tree836b1222bc05056e0ef7fd69566f40e7c207b53c
parentd655bbbd5beead3643f6769adaa1f30bcddc3fe2 (diff)
downloadop-kernel-dev-77c398f58c1fe57224c17f6d4360c7f74cc0e418.zip
op-kernel-dev-77c398f58c1fe57224c17f6d4360c7f74cc0e418.tar.gz
spi: omap-100k: Remove unused pointer in omap1_spi100k_txrx_pio()
Remove unused devdata pointer 'spi100k' in function omap1_spi100k_txrx_pio(). Detected by Coverity: CID 1077869. Signed-off-by: Christian Engelmayer <cengelma@gmx.at> Reviewed-by: Jingoo Han <jg1.han@samsung.com> Acked-by: Michal Nazarewicz <mina86@mina86.com> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--drivers/spi/spi-omap-100k.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi-omap-100k.c b/drivers/spi/spi-omap-100k.c
index 657184a..afc91c4 100644
--- a/drivers/spi/spi-omap-100k.c
+++ b/drivers/spi/spi-omap-100k.c
@@ -197,12 +197,10 @@ static void omap1_spi100k_force_cs(struct omap1_spi100k *spi100k, int enable)
static unsigned
omap1_spi100k_txrx_pio(struct spi_device *spi, struct spi_transfer *xfer)
{
- struct omap1_spi100k *spi100k;
struct omap1_spi100k_cs *cs = spi->controller_state;
unsigned int count, c;
int word_len;
- spi100k = spi_master_get_devdata(spi->master);
count = xfer->len;
c = count;
word_len = cs->word_len;
OpenPOWER on IntegriCloud