From: Pierre Ossman Date: Mon, 28 Jul 2008 22:53:20 +0000 (+0200) Subject: sdhci: check correct return value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=980167b7fb20fb181766218b4771fc7420a7bbb4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git sdhci: check correct return value Fix a copy-and-paste error. Signed-off-by: Pierre Ossman --- diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 9191aaf2e52c..e3a8133560a2 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -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);