Skip to content

Commit

Permalink
spi/bfin_spi: return immediately after skipping to next transfer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sonic Zhang authored and Grant Likely committed Feb 15, 2011
1 parent 4d676fc commit 1974eba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/spi/spi_bfin5xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,7 @@ static void bfin_spi_pump_transfers(unsigned long data)
message->state = bfin_spi_next_transfer(drv_data);
/* Schedule next transfer tasklet */
tasklet_schedule(&drv_data->pump_transfers);
return;
}

if (transfer->tx_buf != NULL) {
Expand Down

0 comments on commit 1974eba

Please sign in to comment.