]> git.baikalelectronics.ru Git - kernel.git/commitdiff
spi: spi-mxs: Remove unused bits_per_word variable
authorAxel Lin <axel.lin@ingics.com>
Tue, 6 Aug 2013 04:20:41 +0000 (12:20 +0800)
committerMark Brown <broonie@linaro.org>
Tue, 6 Aug 2013 17:06:29 +0000 (18:06 +0100)
The bits_per_word variable is not used after commit 5f760758ad4
"spi: convert drivers to use bits_per_word_mask".

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-mxs.c

index d7b3e4311f72fdf1bcac02848cb43f3f80cf9f6d..de7b1141b90f5b741f3fc7fcbcdfc197fce5260b 100644 (file)
@@ -67,13 +67,8 @@ static int mxs_spi_setup_transfer(struct spi_device *dev,
 {
        struct mxs_spi *spi = spi_master_get_devdata(dev->master);
        struct mxs_ssp *ssp = &spi->ssp;
-       uint8_t bits_per_word;
        uint32_t hz = 0;
 
-       bits_per_word = dev->bits_per_word;
-       if (t && t->bits_per_word)
-               bits_per_word = t->bits_per_word;
-
        hz = dev->max_speed_hz;
        if (t && t->speed_hz)
                hz = min(hz, t->speed_hz);