spi: dw: eliminate unused threshold variables
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 14 Oct 2015 20:12:22 +0000 (23:12 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 19 Oct 2015 19:32:01 +0000 (20:32 +0100)
The tx_threshold and rx_threshold variables are not used anywhere. Remove them.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw.c

index a6fd7cfa1b4069a2f95c8762f406bf2fdca0605e..c8e7715097e712ee2c6c2e0d538d3af80c9d36cb 100644 (file)
@@ -36,8 +36,6 @@ struct chip_data {
 
        u8 poll_mode;           /* 1 means use poll mode */
 
-       u32 rx_threshold;
-       u32 tx_threshold;
        u8 enable_dma;
        u16 clk_div;            /* baud rate divider */
        u32 speed_hz;           /* baud rate */
@@ -425,9 +423,6 @@ static int dw_spi_setup(struct spi_device *spi)
 
                chip->poll_mode = chip_info->poll_mode;
                chip->type = chip_info->type;
-
-               chip->rx_threshold = 0;
-               chip->tx_threshold = 0;
        }
 
        chip->tmode = 0; /* Tx & Rx */