Skip to contentSkip to conversation

spi: bfin5xx: Remove unused last_transfer pointer in bfin_spi_giveback()

PATCH Applied Axel Lin 2 participants 2 messages Feb 9, 2014 – Feb 14, 2014 SPI

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 spi: bfin5xx: Remove unused last_transfer pointer in bfin_spi_giveback()

---
 drivers/spi/spi-bfin5xx.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/spi/spi-bfin5xx.c +0 -4
index f0f195a..d0f36ac 100644
@@ -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)
Signature · 8 lines
1.8.1.2



--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html