lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 16 Sep 2014 16:47:47 +0530
From:	Pramod Gurav <>
Cc:	David Brown <>,
	Daniel Walker <>,
	Bryan Huntsman <>,
	Ulf Hansson <>,,
Subject: [PATCH 4/5] mmc: msm_sdcc: Remove duplicate check around dmares

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 <>
Cc: Daniel Walker <>
Cc: Bryan Huntsman <>
CC: Ulf Hansson <>
Signed-off-by: Pramod Gurav <>
 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-> = host;
 	host-> = -1;
-	if (!host->dmares)
-		return -ENODEV;
 	host-> = dma_alloc_coherent(NULL,
 					  sizeof(struct msmsdcc_nc_dmadata),

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

Powered by blists - more mailing lists