spi: bfin5xx: Remove unused last_transfer pointer in bfin_spi_giveback()
authorAxel Lin <axel.lin@ingics.com>
Sun, 9 Feb 2014 03:25:34 +0000 (11:25 +0800)
committerMark Brown <broonie@linaro.org>
Fri, 14 Feb 2014 20:25:34 +0000 (20:25 +0000)
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-bfin5xx.c

index c6902d2087d2dc0390a4765da757e9f842545cc8..55e57c3eb9bd051bc7fcca7d5090a2d999bf688b 100644 (file)
@@ -350,7 +350,6 @@ static void *bfin_spi_next_transfer(struct bfin_spi_master_data *drv_data)
 static void bfin_spi_giveback(struct bfin_spi_master_data *drv_data)
 {
        struct bfin_spi_slave_data *chip = drv_data->cur_chip;
-       struct spi_transfer *last_transfer;
        unsigned long flags;
        struct spi_message *msg;
 
@@ -362,9 +361,6 @@ static void bfin_spi_giveback(struct bfin_spi_master_data *drv_data)
        queue_work(drv_data->workqueue, &drv_data->pump_messages);
        spin_unlock_irqrestore(&drv_data->lock, flags);
 
-       last_transfer = list_entry(msg->transfers.prev,
-                                  struct spi_transfer, transfer_list);
-
        msg->state = NULL;
 
        if (!drv_data->cs_change)