@@ -1381,7 +1381,6 @@ static void pump_transfers(unsigned long data)
struct pl022 *pl022 = (struct pl022 *) data;
struct spi_message *message = NULL;
struct spi_transfer *transfer = NULL;
- struct spi_transfer *previous = NULL;
/* Get current state information */
message = pl022->cur_msg;
@@ -1403,9 +1402,9 @@ static void pump_transfers(unsigned long data)
/* Delay if requested at end of transfer before CS change */
if (message->state == STATE_RUNNING) {
- previous = list_entry(transfer->transfer_list.prev,
- struct spi_transfer,
- transfer_list);
+ struct spi_transfer *previous = list_entry(transfer->transfer_list.prev,
+ struct spi_transfer,
+ transfer_list);
/*
* FIXME: This runs in interrupt context.
* Is this really smart?