lkml.org 
[lkml]   [2014]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 4/5] mmc: msm_sdcc: Remove duplicate check around dmares
Date
This removes duplicate check on host->dmares. As function
msmsdcc_init_dma() is called only after host->dmares is found
true, it is unnecessary to recheck inside the function.

Cc: David Brown <davidb@codeaurora.org>
Cc: Daniel Walker <dwalker@fifo99.com>
Cc: Bryan Huntsman <bryanh@codeaurora.org>
CC: Ulf Hansson <ulf.hansson@linaro.org>
CC: linux-mmc@vger.kernel.org
CC: linux-arm-msm@vger.kernel.org
Signed-off-by: Pramod Gurav <pramod.gurav@smartplayin.com>
---
drivers/mmc/host/msm_sdcc.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/drivers/mmc/host/msm_sdcc.c b/drivers/mmc/host/msm_sdcc.c
index 2111c03..5025364 100644
--- a/drivers/mmc/host/msm_sdcc.c
+++ b/drivers/mmc/host/msm_sdcc.c
@@ -1143,9 +1143,6 @@ msmsdcc_init_dma(struct msmsdcc_host *host)
host->dma.host = host;
host->dma.channel = -1;

- if (!host->dmares)
- return -ENODEV;
-
host->dma.nc = dma_alloc_coherent(NULL,
sizeof(struct msmsdcc_nc_dmadata),
&host->dma.nc_busaddr,
--
1.7.9.5


\
 
 \ /
  Last update: 2014-09-16 13:41    [W:0.087 / U:1.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site