From: Andy Shevchenko Date: Wed, 14 Oct 2015 20:12:22 +0000 (+0300) Subject: spi: dw: eliminate unused threshold variables X-Git-Tag: firefly_0821_release~176^2~790^2~3^3~6 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d53c0ef319eb5ceb5a089ff3050a2e6808c9adb9;p=firefly-linux-kernel-4.4.55.git spi: dw: eliminate unused threshold variables The tx_threshold and rx_threshold variables are not used anywhere. Remove them. Signed-off-by: Andy Shevchenko Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-dw.c b/drivers/spi/spi-dw.c index a6fd7cfa1b40..c8e7715097e7 100644 --- a/drivers/spi/spi-dw.c +++ b/drivers/spi/spi-dw.c @@ -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 */