spi/bfin_spi: return immediately after skipping to next transfer
authorSonic Zhang <sonic.zhang@analog.com>
Tue, 11 Jan 2011 16:19:08 +0000 (11:19 -0500)
committerGrant Likely <grant.likely@secretlab.ca>
Tue, 15 Feb 2011 20:57:02 +0000 (13:57 -0700)
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>
drivers/spi/spi_bfin5xx.c

index e8d68b7..a284624 100644 (file)
@@ -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) {