diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2011-01-11 11:19:08 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-02-15 15:57:02 -0500 |
commit | 1974eba605557e934764cb83c8ceb0eca78f011a (patch) | |
tree | 02788033188a4cb5c5ec5861c7599d313cdfc6a3 /drivers/spi | |
parent | 4d676fc5c39a677aa72148debd47029d8d8f0634 (diff) |
spi/bfin_spi: return immediately after skipping to next transfer
If there is an error with setting up a transfer, we need to return
immediately rather than trying to continue to process things. We
already set up the error states for the caller at this point.
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi_bfin5xx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi_bfin5xx.c b/drivers/spi/spi_bfin5xx.c index e8d68b79e98f..a28462486df8 100644 --- a/drivers/spi/spi_bfin5xx.c +++ b/drivers/spi/spi_bfin5xx.c | |||
@@ -653,6 +653,7 @@ static void bfin_spi_pump_transfers(unsigned long data) | |||
653 | message->state = bfin_spi_next_transfer(drv_data); | 653 | message->state = bfin_spi_next_transfer(drv_data); |
654 | /* Schedule next transfer tasklet */ | 654 | /* Schedule next transfer tasklet */ |
655 | tasklet_schedule(&drv_data->pump_transfers); | 655 | tasklet_schedule(&drv_data->pump_transfers); |
656 | return; | ||
656 | } | 657 | } |
657 | 658 | ||
658 | if (transfer->tx_buf != NULL) { | 659 | if (transfer->tx_buf != NULL) { |