Unverified Commit 9d47e411 authored by Tudor Ambarus's avatar Tudor Ambarus Committed by Mark Brown
Browse files

spi: s3c64xx: remove else after return

parent 271f1881
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -408,12 +408,10 @@ static bool s3c64xx_spi_can_dma(struct spi_controller *host,
{
	struct s3c64xx_spi_driver_data *sdd = spi_controller_get_devdata(host);

	if (sdd->rx_dma.ch && sdd->tx_dma.ch) {
	if (sdd->rx_dma.ch && sdd->tx_dma.ch)
		return xfer->len > FIFO_DEPTH(sdd);
	} else {
		return false;
	}

	return false;
}

static int s3c64xx_enable_datapath(struct s3c64xx_spi_driver_data *sdd,