Skip to content

Commit

Permalink
spi: bfin5xx: Remove unused last_transfer pointer in bfin_spi_giveback()
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Axel Lin authored and Mark Brown committed Feb 14, 2014
1 parent 54457fa commit 6e3bc2b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/spi/spi-bfin5xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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)
Expand Down

0 comments on commit 6e3bc2b

Please sign in to comment.