* [PATCH] spi: bfin5xx: Remove unused last_transfer pointer in bfin_spi_giveback()
@ 2014-02-09 3:25 Axel Lin
2014-02-14 20:25 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2014-02-09 3:25 UTC (permalink / raw)
To: Mark Brown
Cc: Sonic Zhang, Steven Miao, linux-spi-u79uwXL29TY76Z2rM5mHXA,
Jiang, Scott
Signed-off-by: Axel Lin <axel.lin-8E1dMatC8ynQT0dZR+AlfA@public.gmane.org>
---
drivers/spi/spi-bfin5xx.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/spi/spi-bfin5xx.c b/drivers/spi/spi-bfin5xx.c
index f0f195a..d0f36ac 100644
--- a/drivers/spi/spi-bfin5xx.c
+++ b/drivers/spi/spi-bfin5xx.c
@@ -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)
--
1.8.1.2
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] spi: bfin5xx: Remove unused last_transfer pointer in bfin_spi_giveback()
2014-02-09 3:25 [PATCH] spi: bfin5xx: Remove unused last_transfer pointer in bfin_spi_giveback() Axel Lin
@ 2014-02-14 20:25 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2014-02-14 20:25 UTC (permalink / raw)
To: Axel Lin
Cc: Sonic Zhang, Steven Miao, linux-spi-u79uwXL29TY76Z2rM5mHXA,
Jiang, Scott
[-- Attachment #1: Type: text/plain, Size: 153 bytes --]
On Sun, Feb 09, 2014 at 11:25:34AM +0800, Axel Lin wrote:
> Signed-off-by: Axel Lin <axel.lin-8E1dMatC8ynQT0dZR+AlfA@public.gmane.org>
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-14 20:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-09 3:25 [PATCH] spi: bfin5xx: Remove unused last_transfer pointer in bfin_spi_giveback() Axel Lin
2014-02-14 20:25 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).