mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 01:41:39 +00:00
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>
This commit is contained in:
parent
4d676fc5c3
commit
1974eba605
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue