summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/cros_ec_spi.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2016-09-15 11:41:34 +0100
committerLee Jones <lee.jones@linaro.org>2016-10-04 15:48:05 +0100
commit25d94a11db6d1e07a8a0914f33456c018049992e (patch)
tree1348fefb0e2911c07b345e4e7a161f533cd2939c /drivers/mfd/cros_ec_spi.c
parentc7c76277702c8da9ad9914ade7a4c60a7dcd2c0b (diff)
downloadlinux-stable-25d94a11db6d1e07a8a0914f33456c018049992e.tar.gz
linux-stable-25d94a11db6d1e07a8a0914f33456c018049992e.tar.bz2
linux-stable-25d94a11db6d1e07a8a0914f33456c018049992e.zip
mfd: cros_ec_spi: Remove unused variable 'request'
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/cros_ec_spi.c')
-rw-r--r--drivers/mfd/cros_ec_spi.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mfd/cros_ec_spi.c b/drivers/mfd/cros_ec_spi.c
index ebe9b9477cb2..a518832ed5f5 100644
--- a/drivers/mfd/cros_ec_spi.c
+++ b/drivers/mfd/cros_ec_spi.c
@@ -366,7 +366,6 @@ static int cros_ec_spi_receive_response(struct cros_ec_device *ec_dev,
static int cros_ec_pkt_xfer_spi(struct cros_ec_device *ec_dev,
struct cros_ec_command *ec_msg)
{
- struct ec_host_request *request;
struct ec_host_response *response;
struct cros_ec_spi *ec_spi = ec_dev->priv;
struct spi_transfer trans, trans_delay;
@@ -378,7 +377,6 @@ static int cros_ec_pkt_xfer_spi(struct cros_ec_device *ec_dev,
int ret = 0, final_ret;
len = cros_ec_prepare_tx(ec_dev, ec_msg);
- request = (struct ec_host_request *)ec_dev->dout;
dev_dbg(ec_dev->dev, "prepared, len=%d\n", len);
/* If it's too soon to do another transaction, wait */