]> git.karo-electronics.de Git - linux-beck.git/commitdiff
spi: omap-100k: Remove unused pointer in omap1_spi100k_txrx_pio()
authorChristian Engelmayer <cengelma@gmx.at>
Sat, 8 Feb 2014 18:02:23 +0000 (19:02 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 10 Feb 2014 12:16:17 +0000 (12:16 +0000)
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>
drivers/spi/spi-omap-100k.c

index 657184a4644cc525c3bdde8f9a77ce7cafab7232..afc91c4d84612016fd74a1267c5fec8124dff078 100644 (file)
@@ -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;