]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - drivers/mfd/cros_ec_spi.c
Merge branch 'work.splice_read' of git://git.kernel.org/pub/scm/linux/kernel/git...
[mirror_ubuntu-zesty-kernel.git] / drivers / mfd / cros_ec_spi.c
index ebe9b9477cb283fabf0b9f570dcefad13814ef67..a518832ed5f5ba93a45639ca0ddc03612b37f0c1 100644 (file)
@@ -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 */