Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 980167b7 authored by Pierre Ossman's avatar Pierre Ossman
Browse files

sdhci: check correct return value



Fix a copy-and-paste error.

Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
parent ebd6d357
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -448,7 +448,7 @@ static int sdhci_adma_table_pre(struct sdhci_host *host,

	host->adma_addr = dma_map_single(mmc_dev(host->mmc),
		host->adma_desc, (128 * 2 + 1) * 4, DMA_TO_DEVICE);
	if (dma_mapping_error(mmc_dev(host->mmc), host->align_addr))
	if (dma_mapping_error(mmc_dev(host->mmc), host->adma_addr))
		goto unmap_entries;
	BUG_ON(host->adma_addr & 0x3);